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
49e90877
Commit
49e90877
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 & useless initializations
Signed-off-by:
Rémi Denis-Courmont
<
remi@remlab.net
>
parent
57ee2560
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
7 deletions
+12
-7
modules/stream_filter/dash/mpd/BasicCMManager.cpp
modules/stream_filter/dash/mpd/BasicCMManager.cpp
+2
-1
modules/stream_filter/dash/mpd/BasicCMManager.h
modules/stream_filter/dash/mpd/BasicCMManager.h
+1
-1
modules/stream_filter/dash/mpd/IMPDManager.h
modules/stream_filter/dash/mpd/IMPDManager.h
+1
-1
modules/stream_filter/dash/mpd/NullManager.cpp
modules/stream_filter/dash/mpd/NullManager.cpp
+3
-3
modules/stream_filter/dash/mpd/NullManager.h
modules/stream_filter/dash/mpd/NullManager.h
+5
-1
No files found.
modules/stream_filter/dash/mpd/BasicCMManager.cpp
View file @
49e90877
...
...
@@ -60,10 +60,11 @@ std::vector<ISegment*> BasicCMManager::getSegments (Representation
return
retSegments
;
}
std
::
vector
<
Period
*>
BasicCMManager
::
getPeriods
()
const
std
::
vector
<
Period
*>&
BasicCMManager
::
getPeriods
()
const
{
return
this
->
mpd
->
getPeriods
();
}
Representation
*
BasicCMManager
::
getBestRepresentation
(
Period
*
period
)
{
std
::
vector
<
Group
*>
groups
=
period
->
getGroups
();
...
...
modules/stream_filter/dash/mpd/BasicCMManager.h
View file @
49e90877
...
...
@@ -51,7 +51,7 @@ namespace dash
BasicCMManager
(
MPD
*
mpd
);
virtual
~
BasicCMManager
();
std
::
vector
<
Period
*>
getPeriods
()
;
const
std
::
vector
<
Period
*>&
getPeriods
()
const
;
Period
*
getFirstPeriod
();
Period
*
getNextPeriod
(
Period
*
period
);
Representation
*
getBestRepresentation
(
Period
*
period
);
...
...
modules/stream_filter/dash/mpd/IMPDManager.h
View file @
49e90877
...
...
@@ -26,7 +26,7 @@ namespace dash
class
IMPDManager
{
public:
virtual
std
::
vector
<
Period
*>
getPeriods
()
=
0
;
virtual
const
std
::
vector
<
Period
*>&
getPeriods
()
const
=
0
;
virtual
Period
*
getFirstPeriod
()
=
0
;
virtual
Period
*
getNextPeriod
(
Period
*
period
)
=
0
;
virtual
Representation
*
getBestRepresentation
(
Period
*
period
)
=
0
;
...
...
modules/stream_filter/dash/mpd/NullManager.cpp
View file @
49e90877
...
...
@@ -37,9 +37,9 @@ NullManager::~NullManager ()
{
}
std
::
vector
<
Period
*>
NullManager
::
getPeriods
()
const
std
::
vector
<
Period
*>&
NullManager
::
getPeriods
()
const
{
return
std
::
vector
<
Period
*>
()
;
return
this
->
periods
;
}
Period
*
NullManager
::
getFirstPeriod
()
{
...
...
@@ -55,7 +55,7 @@ Representation* NullManager::getBestRepresentation (Period *)
}
std
::
vector
<
ISegment
*>
NullManager
::
getSegments
(
Representation
*
)
{
return
std
::
vector
<
ISegment
*>
()
;
return
this
->
segments
;
}
Representation
*
NullManager
::
getRepresentation
(
Period
*
,
long
)
{
...
...
modules/stream_filter/dash/mpd/NullManager.h
View file @
49e90877
...
...
@@ -42,12 +42,16 @@ namespace dash
NullManager
();
virtual
~
NullManager
();
std
::
vector
<
Period
*>
getPeriods
()
;
const
std
::
vector
<
Period
*>&
getPeriods
()
const
;
Period
*
getFirstPeriod
();
Period
*
getNextPeriod
(
Period
*
period
);
Representation
*
getBestRepresentation
(
Period
*
period
);
std
::
vector
<
ISegment
*>
getSegments
(
Representation
*
rep
);
Representation
*
getRepresentation
(
Period
*
period
,
long
bitrate
);
private:
std
::
vector
<
Period
*>
periods
;
std
::
vector
<
ISegment
*>
segments
;
};
}
}
...
...
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