[vlc-commits] dash: Ignore representations without valid segments.

Hugo Beauzée-Luyssen git at videolan.org
Mon Nov 28 20:24:32 CET 2011


vlc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Mon Nov 28 14:53:11 2011 +0100| [33f8d91d7537eb8517c8157afcb56432aba42a1a] | committer: Jean-Baptiste Kempf

dash: Ignore representations without valid segments.

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

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=33f8d91d7537eb8517c8157afcb56432aba42a1a
---

 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 dd88fe0..feb12ca 100644
--- a/modules/stream_filter/dash/mpd/BasicCMParser.cpp
+++ b/modules/stream_filter/dash/mpd/BasicCMParser.cpp
@@ -89,7 +89,8 @@ void    BasicCMParser::setRepresentations   (Node *root, Group *group)
     {
         Representation *rep = new Representation(representations.at(i)->getAttributes());
         this->setSegmentInfo(representations.at(i), rep);
-        group->addRepresentation(rep);
+        if ( rep->getSegmentInfo() && rep->getSegmentInfo()->getSegments().size() > 0 )
+            group->addRepresentation(rep);
     }
 }
 void    BasicCMParser::setSegmentInfo       (Node *root, Representation *rep)



More information about the vlc-commits mailing list