[vlc-devel] [PATCH 3/8] dash: dont use best rep without information

Hugo Beauzée-Luyssen beauze.h at gmail.com
Sun Feb 5 22:27:17 CET 2012


On Sun, Feb 5, 2012 at 10:34 AM, Christopher Mueller
<christopher.mueller at itec.aau.at> wrote:
> Signed-off-by: Christopher Mueller <christopher.mueller at itec.aau.at>
> ---
>  modules/stream_filter/dash/mpd/BasicCMManager.cpp |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/modules/stream_filter/dash/mpd/BasicCMManager.cpp b/modules/stream_filter/dash/mpd/BasicCMManager.cpp
> index 8140247..b8c6f88 100644
> --- a/modules/stream_filter/dash/mpd/BasicCMManager.cpp
> +++ b/modules/stream_filter/dash/mpd/BasicCMManager.cpp
> @@ -106,7 +106,7 @@ Representation*         BasicCMManager::getRepresentation(Period *period, int bi
>             int     currentBitrate = reps.at(j)->getBandwidth();
>             assert( currentBitrate != -1 );
>
> -            if ( best == NULL || bitrate == -1 ||
> +            if ( best == NULL ||
>                  ( currentBitrate > best->getBandwidth() &&
>                    currentBitrate < bitrate ) )
>             {
> --
> 1.7.0.4
>

Works for me.

Regards,


-- 
Hugo Beauzée-Luyssen



More information about the vlc-devel mailing list