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 fd8787137788fd24f2b9bb9890068d51e6f66a80)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 692fe79d
...@@ -335,6 +335,7 @@ bool BasicCMParser::setSegments (Node *root, SegmentInfo *info) ...@@ -335,6 +335,7 @@ 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() );
if ( seg->getSourceUrl().empty() == false )
info->addSegment(seg); 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