[vlc-devel] [PATCH] dash: fix intialization typo

Christopher at mailsrv.uni-klu.ac.at Christopher at mailsrv.uni-klu.ac.at
Thu Feb 23 16:16:54 CET 2012


From: Christopher Mueller <christopher.mueller at itec.aau.at>

---
 modules/stream_filter/dash/mpd/IsoffMainParser.cpp |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/modules/stream_filter/dash/mpd/IsoffMainParser.cpp b/modules/stream_filter/dash/mpd/IsoffMainParser.cpp
index 888c347..014b0ad 100644
--- a/modules/stream_filter/dash/mpd/IsoffMainParser.cpp
+++ b/modules/stream_filter/dash/mpd/IsoffMainParser.cpp
@@ -157,6 +157,9 @@ void    IsoffMainParser::setInitSegment     (dash::xml::Node *segBaseNode, Segme
 {
     std::vector<Node *> initSeg = DOMHelper::getElementByTagName(segBaseNode, "Initialisation", false);
 
+    if(initSeg.size() == 0)
+        initSeg = DOMHelper::getElementByTagName(segBaseNode, "Initialization", false);
+
     if(initSeg.size() > 0)
     {
         Segment *seg = new Segment( this->currentRepresentation );
-- 
1.7.0.4




More information about the vlc-devel mailing list