vlc/vlc-1.2 | branch: master | Hugo Beauzée-Luyssen <[email protected]> | 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 <[email protected]>
(cherry picked from commit fd8787137788fd24f2b9bb9890068d51e6f66a80)

Signed-off-by: Jean-Baptiste Kempf <[email protected]>

> 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;
 }

_______________________________________________
vlc-commits mailing list
[email protected]
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to