[vlc-commits] dash: fix parsing bug

Christopher Mueller git at videolan.org
Mon Mar 5 16:00:10 CET 2012


vlc | branch: master | Christopher Mueller <christopher.mueller at itec.aau.at> | Fri Mar  2 09:57:00 2012 +0100| [cb50a4ea6235139d390a8d8b71e8fd71cc6ae522] | committer: Hugo Beauzée-Luyssen

dash: fix parsing bug

Signed-off-by: Hugo Beauzée-Luyssen <beauze.h at gmail.com>

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

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

diff --git a/modules/stream_filter/dash/mpd/IsoffMainParser.cpp b/modules/stream_filter/dash/mpd/IsoffMainParser.cpp
index 014b0ad..f2d5f20 100644
--- a/modules/stream_filter/dash/mpd/IsoffMainParser.cpp
+++ b/modules/stream_filter/dash/mpd/IsoffMainParser.cpp
@@ -194,8 +194,8 @@ void    IsoffMainParser::setSegments        (dash::xml::Node *segListNode, Segme
             seg->setByteRange(atoi(range.substr(0, pos).c_str()), atoi(range.substr(pos + 1, range.size()).c_str()));
         }
 
-        for(size_t i = 0; i < this->mpd->getBaseUrls().size(); i++)
-            seg->addBaseUrl(this->mpd->getBaseUrls().at(i));
+        for(size_t j = 0; j < this->mpd->getBaseUrls().size(); j++)
+            seg->addBaseUrl(this->mpd->getBaseUrls().at(j));
 
         list->addSegment(seg);
     }



More information about the vlc-commits mailing list