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,7 +89,8 @@ void BasicCMParser::setRepresentations (Node *root, Group *group)
{
Representation *rep = new Representation(representations.at(i)->getAttributes());
this->setSegmentInfo(representations.at(i), rep);
group->addRepresentation(rep);
if ( rep->getSegmentInfo() && rep->getSegmentInfo()->getSegments().size() > 0 )
group->addRepresentation(rep);
}
}
void BasicCMParser::setSegmentInfo (Node *root, Representation *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