]> git.sesse.net Git - vlc/commitdiff
stream_filter: dash: simplify next chunk condition
authorFrancois Cartegnie <fcvlcdev@free.fr>
Sat, 22 Nov 2014 10:21:05 +0000 (11:21 +0100)
committerFrancois Cartegnie <fcvlcdev@free.fr>
Thu, 18 Dec 2014 20:23:49 +0000 (21:23 +0100)
modules/stream_filter/dash/adaptationlogic/AlwaysBestAdaptationLogic.cpp

index b16102d13aeb9d081d2243eb043df795dff3d58f..568174d952ceb311aa5cb9bead5f0e0fcb0182ac 100644 (file)
@@ -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();