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

Hugo Beauzée-Luyssen git at videolan.org
Wed Nov 30 01:21:17 CET 2011


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

dash: Ignore representations without valid segments.

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

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

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

 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