Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
85ed6b99
Commit
85ed6b99
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 some copies.
Signed-off-by:
Rémi Denis-Courmont
<
remi@remlab.net
>
parent
df975712
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
13 deletions
+16
-13
modules/stream_filter/dash/mpd/MPD.cpp
modules/stream_filter/dash/mpd/MPD.cpp
+11
-8
modules/stream_filter/dash/mpd/MPD.h
modules/stream_filter/dash/mpd/MPD.h
+5
-5
No files found.
modules/stream_filter/dash/mpd/MPD.cpp
View file @
85ed6b99
...
...
@@ -50,33 +50,36 @@ MPD::~MPD ()
delete
(
this
->
programInfo
);
}
std
::
vector
<
Period
*>
MPD
::
getPeriods
()
const
std
::
vector
<
Period
*>&
MPD
::
getPeriods
()
const
{
return
this
->
periods
;
}
std
::
vector
<
BaseUrl
*>
MPD
::
getBaseUrls
()
const
std
::
vector
<
BaseUrl
*>&
MPD
::
getBaseUrls
()
const
{
return
this
->
baseUrls
;
}
std
::
string
MPD
::
getMinBufferTime
()
throw
(
AttributeNotPresentException
)
const
std
::
string
&
MPD
::
getMinBufferTime
()
const
throw
(
AttributeNotPresentException
)
{
AttributesMap
::
iterator
it
=
this
->
attributes
.
find
(
"minBufferTime"
);
AttributesMap
::
const_
iterator
it
=
this
->
attributes
.
find
(
"minBufferTime"
);
if
(
it
==
this
->
attributes
.
end
())
throw
AttributeNotPresentException
();
return
it
->
second
;
}
std
::
string
MPD
::
getType
()
throw
(
AttributeNotPresentException
)
const
std
::
string
&
MPD
::
getType
()
const
throw
(
AttributeNotPresentException
)
{
AttributesMap
::
iterator
it
=
this
->
attributes
.
find
(
"type"
);
AttributesMap
::
const_
iterator
it
=
this
->
attributes
.
find
(
"type"
);
if
(
it
==
this
->
attributes
.
end
()
)
throw
AttributeNotPresentException
();
return
it
->
second
;
}
std
::
string
MPD
::
getDuration
()
throw
(
AttributeNotPresentException
)
const
std
::
string
&
MPD
::
getDuration
()
const
throw
(
AttributeNotPresentException
)
{
AttributesMap
::
iterator
it
=
this
->
attributes
.
find
(
"mediaPresentationDuration"
);
AttributesMap
::
const_
iterator
it
=
this
->
attributes
.
find
(
"mediaPresentationDuration"
);
if
(
it
==
this
->
attributes
.
end
())
throw
AttributeNotPresentException
();
...
...
modules/stream_filter/dash/mpd/MPD.h
View file @
85ed6b99
...
...
@@ -48,11 +48,11 @@ namespace dash
MPD
();
virtual
~
MPD
();
std
::
string
getType
()
throw
(
dash
::
exception
::
AttributeNotPresentException
);
std
::
string
getDuration
()
throw
(
dash
::
exception
::
AttributeNotPresentException
);
std
::
string
getMinBufferTime
()
throw
(
dash
::
exception
::
AttributeNotPresentException
);
std
::
vector
<
BaseUrl
*>
getBaseUrls
()
;
std
::
vector
<
Period
*>
getPeriods
()
;
const
std
::
string
&
getType
()
const
throw
(
dash
::
exception
::
AttributeNotPresentException
);
const
std
::
string
&
getDuration
()
const
throw
(
dash
::
exception
::
AttributeNotPresentException
);
const
std
::
string
&
getMinBufferTime
()
const
throw
(
dash
::
exception
::
AttributeNotPresentException
);
const
std
::
vector
<
BaseUrl
*>&
getBaseUrls
()
const
;
const
std
::
vector
<
Period
*>&
getPeriods
()
const
;
ProgramInformation
*
getProgramInformation
()
throw
(
dash
::
exception
::
ElementNotPresentException
);
void
addPeriod
(
Period
*
period
);
...
...
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