Commit 33f8d91d authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen Committed by Jean-Baptiste Kempf

dash: Ignore representations without valid segments.

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent f0bf3522
...@@ -89,6 +89,7 @@ void BasicCMParser::setRepresentations (Node *root, Group *group) ...@@ -89,6 +89,7 @@ void BasicCMParser::setRepresentations (Node *root, Group *group)
{ {
Representation *rep = new Representation(representations.at(i)->getAttributes()); Representation *rep = new Representation(representations.at(i)->getAttributes());
this->setSegmentInfo(representations.at(i), rep); this->setSegmentInfo(representations.at(i), rep);
if ( rep->getSegmentInfo() && rep->getSegmentInfo()->getSegments().size() > 0 )
group->addRepresentation(rep); group->addRepresentation(rep);
} }
} }
......
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