Commit 0ac3f7bd authored by Christopher Mueller's avatar Christopher Mueller Committed by Jean-Baptiste Kempf

dash: made segmentbase optional

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent d23510de
...@@ -43,10 +43,14 @@ std::vector<Segment*> IsoffMainManager::getSegments (const Repre ...@@ -43,10 +43,14 @@ std::vector<Segment*> IsoffMainManager::getSegments (const Repre
{ {
std::vector<Segment *> retSegments; std::vector<Segment *> retSegments;
SegmentList* list= rep->getSegmentList(); SegmentList* list= rep->getSegmentList();
if(rep->getSegmentBase())
{
Segment* initSegment = rep->getSegmentBase()->getInitSegment(); Segment* initSegment = rep->getSegmentBase()->getInitSegment();
if(initSegment) if(initSegment)
retSegments.push_back(initSegment); retSegments.push_back(initSegment);
}
retSegments.insert(retSegments.end(), list->getSegments().begin(), list->getSegments().end()); retSegments.insert(retSegments.end(), list->getSegments().begin(), list->getSegments().end());
return retSegments; return retSegments;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment