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
{
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;
......
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