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
0290575b
Commit
0290575b
authored
Nov 28, 2011
by
Hugo Beauzée-Luyssen
Committed by
Jean-Baptiste Kempf
Nov 28, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dash: Segments: Avoid copies + cosmetic.
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
33f8d91d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
modules/stream_filter/dash/mpd/SegmentInfo.cpp
modules/stream_filter/dash/mpd/SegmentInfo.cpp
+8
-4
modules/stream_filter/dash/mpd/SegmentInfo.h
modules/stream_filter/dash/mpd/SegmentInfo.h
+2
-2
No files found.
modules/stream_filter/dash/mpd/SegmentInfo.cpp
View file @
0290575b
...
...
@@ -30,11 +30,12 @@
using
namespace
dash
::
mpd
;
using
namespace
dash
::
exception
;
SegmentInfo
::
SegmentInfo
(
std
::
map
<
std
::
string
,
std
::
string
>
attr
)
SegmentInfo
::
SegmentInfo
(
const
std
::
map
<
std
::
string
,
std
::
string
>&
attr
)
:
attributes
(
attr
),
initSeg
(
NULL
)
{
this
->
attributes
=
attr
;
this
->
initSeg
=
NULL
;
}
SegmentInfo
::~
SegmentInfo
()
{
for
(
size_t
i
=
0
;
i
<
this
->
segments
.
size
();
i
++
)
...
...
@@ -50,14 +51,17 @@ InitSegment* SegmentInfo::getInitSegment () throw(ElementNotPrese
return
this
->
initSeg
;
}
std
::
vector
<
Segment
*>
SegmentInfo
::
getSegments
()
const
std
::
vector
<
Segment
*>&
SegmentInfo
::
getSegments
()
const
{
return
this
->
segments
;
}
void
SegmentInfo
::
addSegment
(
Segment
*
seg
)
{
this
->
segments
.
push_back
(
seg
);
}
void
SegmentInfo
::
setInitSegment
(
InitSegment
*
initSeg
)
{
this
->
initSeg
=
initSeg
;
...
...
modules/stream_filter/dash/mpd/SegmentInfo.h
View file @
0290575b
...
...
@@ -40,11 +40,11 @@ namespace dash
class
SegmentInfo
{
public:
SegmentInfo
(
std
::
map
<
std
::
string
,
std
::
string
>
attr
);
SegmentInfo
(
const
std
::
map
<
std
::
string
,
std
::
string
>&
attr
);
virtual
~
SegmentInfo
();
InitSegment
*
getInitSegment
()
throw
(
dash
::
exception
::
ElementNotPresentException
);
std
::
vector
<
Segment
*>
getSegments
()
;
const
std
::
vector
<
Segment
*>&
getSegments
()
const
;
void
setInitSegment
(
InitSegment
*
initSeg
);
void
addSegment
(
Segment
*
seg
);
...
...
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