Commit fd878713 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>
parent 7127d0c9
...@@ -335,7 +335,8 @@ bool BasicCMParser::setSegments (Node *root, SegmentInfo *info) ...@@ -335,7 +335,8 @@ bool BasicCMParser::setSegments (Node *root, SegmentInfo *info)
{ {
Segment *seg = new Segment(); Segment *seg = new Segment();
parseSegment( seg, segments.at(i)->getAttributes() ); parseSegment( seg, segments.at(i)->getAttributes() );
info->addSegment(seg); if ( seg->getSourceUrl().empty() == false )
info->addSegment(seg);
} }
return true; 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