Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
47af7ca1
Commit
47af7ca1
authored
Nov 25, 2014
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stream_filter: dash: have vlc_object accessible from, at least, segments
parent
9227c871
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
24 additions
and
6 deletions
+24
-6
modules/stream_filter/dash/mpd/BasicCMParser.cpp
modules/stream_filter/dash/mpd/BasicCMParser.cpp
+1
-1
modules/stream_filter/dash/mpd/IsoffMainParser.cpp
modules/stream_filter/dash/mpd/IsoffMainParser.cpp
+1
-1
modules/stream_filter/dash/mpd/MPD.cpp
modules/stream_filter/dash/mpd/MPD.cpp
+9
-1
modules/stream_filter/dash/mpd/MPD.h
modules/stream_filter/dash/mpd/MPD.h
+3
-1
modules/stream_filter/dash/mpd/Representation.cpp
modules/stream_filter/dash/mpd/Representation.cpp
+8
-2
modules/stream_filter/dash/mpd/Representation.h
modules/stream_filter/dash/mpd/Representation.h
+2
-0
No files found.
modules/stream_filter/dash/mpd/BasicCMParser.cpp
View file @
47af7ca1
...
...
@@ -63,7 +63,7 @@ BasicCMParser::~BasicCMParser ()
bool
BasicCMParser
::
parse
()
{
const
std
::
map
<
std
::
string
,
std
::
string
>
attr
=
this
->
root
->
getAttributes
();
this
->
mpd
=
new
MPD
;
this
->
mpd
=
new
MPD
(
p_stream
)
;
std
::
map
<
std
::
string
,
std
::
string
>::
const_iterator
it
;
it
=
attr
.
find
(
"mediaPresentationDuration"
);
...
...
modules/stream_filter/dash/mpd/IsoffMainParser.cpp
View file @
47af7ca1
...
...
@@ -45,7 +45,7 @@ IsoffMainParser::~IsoffMainParser ()
bool
IsoffMainParser
::
parse
()
{
mpd
=
new
MPD
();
mpd
=
new
MPD
(
p_stream
);
setMPDAttributes
();
setMPDBaseUrl
(
root
);
setPeriods
(
root
);
...
...
modules/stream_filter/dash/mpd/MPD.cpp
View file @
47af7ca1
...
...
@@ -26,11 +26,14 @@
#endif
#include "MPD.h"
#include "Helper.h"
#include "dash.hpp"
using
namespace
dash
::
mpd
;
MPD
::
MPD
()
:
MPD
::
MPD
(
stream_t
*
stream_
)
:
ICanonicalUrl
(),
stream
(
stream_
),
profile
(
dash
::
mpd
::
Profile
::
Unknown
),
live
(
false
),
availabilityStartTime
(
-
1
),
...
...
@@ -170,3 +173,8 @@ std::string MPD::getUrlSegment() const
else
return
std
::
string
();
}
vlc_object_t
*
MPD
::
getVLCObject
()
const
{
return
VLC_OBJECT
(
stream
);
}
modules/stream_filter/dash/mpd/MPD.h
View file @
47af7ca1
...
...
@@ -42,7 +42,7 @@ namespace dash
class
MPD
:
public
ICanonicalUrl
{
public:
MPD
();
MPD
(
stream_t
*
);
virtual
~
MPD
();
Profile
getProfile
()
const
;
...
...
@@ -69,8 +69,10 @@ namespace dash
void
setProgramInformation
(
ProgramInformation
*
progInfo
);
virtual
std
::
string
getUrlSegment
()
const
;
/* impl */
vlc_object_t
*
getVLCObject
()
const
;
private:
stream_t
*
stream
;
Profile
profile
;
bool
live
;
time_t
availabilityStartTime
;
...
...
modules/stream_filter/dash/mpd/Representation.cpp
View file @
47af7ca1
...
...
@@ -32,8 +32,9 @@
using
namespace
dash
::
mpd
;
Representation
::
Representation
(
MPD
*
mpd
)
:
ICanonicalUrl
(
mpd
),
Representation
::
Representation
(
MPD
*
mpd_
)
:
ICanonicalUrl
(
mpd_
),
mpd
(
mpd_
),
bandwidth
(
0
),
qualityRanking
(
-
1
),
segmentInfo
(
NULL
),
...
...
@@ -223,3 +224,8 @@ std::string Representation::getUrlSegment() const
ret
.
append
(
baseUrl
->
getUrl
());
return
ret
;
}
MPD
*
Representation
::
getMPD
()
const
{
return
mpd
;
}
modules/stream_filter/dash/mpd/Representation.h
View file @
47af7ca1
...
...
@@ -84,11 +84,13 @@ namespace dash
void
setHeight
(
int
height
);
int
getHeight
()
const
;
void
setBaseUrl
(
BaseUrl
*
baseUrl
);
MPD
*
getMPD
()
const
;
std
::
vector
<
std
::
string
>
toString
()
const
;
virtual
std
::
string
getUrlSegment
()
const
;
/* impl */
private:
MPD
*
mpd
;
uint64_t
bandwidth
;
std
::
string
id
;
int
qualityRanking
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment