[vlc-commits] stream_filter: dash: simplify next chunk condition

Francois Cartegnie git at videolan.org
Thu Dec 18 22:39:48 CET 2014


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sat Nov 22 11:21:05 2014 +0100| [33097d5d6b88d6e430a05b74e30597e17a0e0af1] | committer: Francois Cartegnie

stream_filter: dash: simplify next chunk condition

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

 .../dash/adaptationlogic/AlwaysBestAdaptationLogic.cpp           |    6 ------
 1 file changed, 6 deletions(-)

diff --git a/modules/stream_filter/dash/adaptationlogic/AlwaysBestAdaptationLogic.cpp b/modules/stream_filter/dash/adaptationlogic/AlwaysBestAdaptationLogic.cpp
index b16102d..568174d 100644
--- a/modules/stream_filter/dash/adaptationlogic/AlwaysBestAdaptationLogic.cpp
+++ b/modules/stream_filter/dash/adaptationlogic/AlwaysBestAdaptationLogic.cpp
@@ -45,12 +45,6 @@ AlwaysBestAdaptationLogic::~AlwaysBestAdaptationLogic   ()
 
 Chunk*  AlwaysBestAdaptationLogic::getNextChunk()
 {
-    if(this->schedule.size() == 0)
-        return NULL;
-
-    if(this->count == this->schedule.size())
-        return NULL;
-
     if ( this->count < this->schedule.size() )
     {
         Chunk *chunk = new Chunk();



More information about the vlc-commits mailing list