[vlc-commits] dash: dont use best rep without information

Christopher Mueller git at videolan.org
Tue Feb 14 17:30:19 CET 2012


vlc | branch: master | Christopher Mueller <christopher.mueller at itec.aau.at> | Sat Feb 11 11:59:54 2012 +0100| [0fdc83824259eea354ab5239e25b127e6258cb9e] | committer: Hugo Beauzée-Luyssen

dash: dont use best rep without information

Signed-off-by: Christopher Mueller <christopher.mueller at itec.aau.at>
Signed-off-by: Hugo Beauzée-Luyssen <beauze.h at gmail.com>

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

 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 ) )
             {



More information about the vlc-commits mailing list