Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
df975712
Commit
df975712
authored
Nov 24, 2011
by
Hugo Beauzée-Luyssen
Committed by
Rémi Denis-Courmont
Nov 24, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dash: Avoid multiple lookups.
Signed-off-by:
Rémi Denis-Courmont
<
remi@remlab.net
>
parent
dd159d08
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
7 deletions
+13
-7
modules/stream_filter/dash/mpd/MPD.cpp
modules/stream_filter/dash/mpd/MPD.cpp
+10
-6
modules/stream_filter/dash/mpd/MPD.h
modules/stream_filter/dash/mpd/MPD.h
+3
-1
No files found.
modules/stream_filter/dash/mpd/MPD.cpp
View file @
df975712
...
...
@@ -60,24 +60,28 @@ std::vector<BaseUrl*> MPD::getBaseUrls ()
}
std
::
string
MPD
::
getMinBufferTime
()
throw
(
AttributeNotPresentException
)
{
if
(
this
->
attributes
.
find
(
"minBufferTime"
)
==
this
->
attributes
.
end
())
AttributesMap
::
iterator
it
=
this
->
attributes
.
find
(
"minBufferTime"
);
if
(
it
==
this
->
attributes
.
end
())
throw
AttributeNotPresentException
();
return
this
->
attributes
[
"minBufferTime"
]
;
return
it
->
second
;
}
std
::
string
MPD
::
getType
()
throw
(
AttributeNotPresentException
)
{
if
(
this
->
attributes
.
find
(
"type"
)
==
this
->
attributes
.
end
())
AttributesMap
::
iterator
it
=
this
->
attributes
.
find
(
"type"
);
if
(
it
==
this
->
attributes
.
end
()
)
throw
AttributeNotPresentException
();
return
this
->
attributes
[
"type"
]
;
return
it
->
second
;
}
std
::
string
MPD
::
getDuration
()
throw
(
AttributeNotPresentException
)
{
if
(
this
->
attributes
.
find
(
"mediaPresentationDuration"
)
==
this
->
attributes
.
end
())
AttributesMap
::
iterator
it
=
this
->
attributes
.
find
(
"mediaPresentationDuration"
);
if
(
it
==
this
->
attributes
.
end
())
throw
AttributeNotPresentException
();
return
this
->
attributes
[
"mediaPresentationDuration"
]
;
return
it
->
second
;
}
ProgramInformation
*
MPD
::
getProgramInformation
()
throw
(
ElementNotPresentException
)
{
...
...
modules/stream_filter/dash/mpd/MPD.h
View file @
df975712
...
...
@@ -41,6 +41,8 @@ namespace dash
{
class
MPD
{
typedef
std
::
map
<
std
::
string
,
std
::
string
>
AttributesMap
;
public:
MPD
(
std
::
map
<
std
::
string
,
std
::
string
>
attributes
);
MPD
();
...
...
@@ -58,7 +60,7 @@ namespace dash
void
setProgramInformation
(
ProgramInformation
*
progInfo
);
private:
std
::
map
<
std
::
string
,
std
::
string
>
attributes
;
AttributesMap
attributes
;
std
::
vector
<
Period
*>
periods
;
std
::
vector
<
BaseUrl
*>
baseUrls
;
ProgramInformation
*
programInfo
;
...
...
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