[vlc-commits] dash: made segmentbase optional
Christopher Mueller
git at videolan.org
Sun Aug 5 23:04:39 CEST 2012
vlc | branch: master | Christopher Mueller <christopher.mueller at itec.aau.at> | Fri Aug 3 11:39:17 2012 +0200| [0ac3f7bd86d3667061f9ed46a47d19f8f2cb8f09] | committer: Jean-Baptiste Kempf
dash: made segmentbase optional
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0ac3f7bd86d3667061f9ed46a47d19f8f2cb8f09
---
modules/stream_filter/dash/mpd/IsoffMainManager.cpp | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/modules/stream_filter/dash/mpd/IsoffMainManager.cpp b/modules/stream_filter/dash/mpd/IsoffMainManager.cpp
index 0ca1e4f..3607b1f 100644
--- a/modules/stream_filter/dash/mpd/IsoffMainManager.cpp
+++ b/modules/stream_filter/dash/mpd/IsoffMainManager.cpp
@@ -43,10 +43,14 @@ std::vector<Segment*> IsoffMainManager::getSegments (const Repre
{
std::vector<Segment *> retSegments;
SegmentList* list= rep->getSegmentList();
- Segment* initSegment = rep->getSegmentBase()->getInitSegment();
- if(initSegment)
- retSegments.push_back(initSegment);
+ if(rep->getSegmentBase())
+ {
+ Segment* initSegment = rep->getSegmentBase()->getInitSegment();
+
+ if(initSegment)
+ retSegments.push_back(initSegment);
+ }
retSegments.insert(retSegments.end(), list->getSegments().begin(), list->getSegments().end());
return retSegments;
More information about the vlc-commits
mailing list