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

dash: Parser: Ignore segments without sourceURL

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
(cherry picked from commit fd878713)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 692fe79d
......@@ -335,6 +335,7 @@ bool BasicCMParser::setSegments (Node *root, SegmentInfo *info)
{
Segment *seg = new Segment();
parseSegment( seg, segments.at(i)->getAttributes() );
if ( seg->getSourceUrl().empty() == false )
info->addSegment(seg);
}
return true;
......
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