[vlc-devel] [PATCH] dash: fix parsing bug

Hugo Beauzée-Luyssen beauze.h at gmail.com
Mon Mar 5 16:00:26 CET 2012


On Fri, Mar 2, 2012 at 9:57 AM,  <Christopher at mailsrv.uni-klu.ac.at> wrote:
> From: Christopher Mueller <christopher.mueller at itec.aau.at>
>
> ---
>  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);
>     }
> --
> 1.7.0.4
>

Applied, thanks!

-- 
Hugo Beauzée-Luyssen



More information about the vlc-devel mailing list