[vlc-commits] dash: Parser: Ignore segments without sourceURL

Hugo Beauzée-Luyssen git at videolan.org
Tue Jan 24 23:21:57 CET 2012


vlc/vlc-1.2 | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Thu Dec 29 13:19:53 2011 +0100| [356cf412945f63a94568b5194425939d03d33dbc] | committer: Jean-Baptiste Kempf

dash: Parser: Ignore segments without sourceURL

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
(cherry picked from commit fd8787137788fd24f2b9bb9890068d51e6f66a80)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.2.git/?a=commit;h=356cf412945f63a94568b5194425939d03d33dbc
---

 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