[vlc-devel] [PATCH 20/27] dash: dont use best rep without information

Christopher Mueller christopher.mueller at itec.aau.at
Fri Feb 3 11:57:38 CET 2012


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 04c6d70..a048a0d 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




More information about the vlc-devel mailing list