[vlc-commits] dash: Parser: Ignore segments without sourceURL
Hugo Beauzée-Luyssen
git at videolan.org
Fri Dec 30 18:15:36 CET 2011
vlc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Thu Dec 29 13:19:53 2011 +0100| [fd8787137788fd24f2b9bb9890068d51e6f66a80] | committer: Jean-Baptiste Kempf
dash: Parser: Ignore segments without sourceURL
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fd8787137788fd24f2b9bb9890068d51e6f66a80
---
modules/stream_filter/dash/mpd/BasicCMParser.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/modules/stream_filter/dash/mpd/BasicCMParser.cpp b/modules/stream_filter/dash/mpd/BasicCMParser.cpp
index 6c40828..7ca943a 100644
--- a/modules/stream_filter/dash/mpd/BasicCMParser.cpp
+++ b/modules/stream_filter/dash/mpd/BasicCMParser.cpp
@@ -335,7 +335,8 @@ bool BasicCMParser::setSegments (Node *root, SegmentInfo *info)
{
Segment *seg = new Segment();
parseSegment( seg, segments.at(i)->getAttributes() );
- info->addSegment(seg);
+ if ( seg->getSourceUrl().empty() == false )
+ info->addSegment(seg);
}
return true;
}
More information about the vlc-commits
mailing list