Commit 1f722296 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen Committed by Rémi Denis-Courmont

dash: RateBasedAdaptationLogic: Removing useless loop.

Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent ca1045ab
...@@ -67,15 +67,12 @@ Chunk* RateBasedAdaptationLogic::getNextChunk () throw(EOFException) ...@@ -67,15 +67,12 @@ Chunk* RateBasedAdaptationLogic::getNextChunk () throw(EOFException)
return this->getNextChunk(); return this->getNextChunk();
} }
for(size_t i = 0; i < segments.size(); i++) if ( segments.size() > this->count )
{ {
if(i == this->count) Chunk *chunk = new Chunk;
{ chunk->setUrl( segments.at( this->count )->getSourceUrl() );
this->count++; this->count++;
Chunk *chunk = new Chunk(); return chunk;
chunk->setUrl(segments.at(i)->getSourceUrl());
return chunk;
}
} }
return NULL; return NULL;
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment