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

Christopher Mueller christopher.mueller at itec.aau.at
Sun Feb 5 10:34:51 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 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




More information about the vlc-devel mailing list