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: Rémi Denis-Courmont's avatarRémi Denis-Courmont <remi@remlab.net>
parent ca1045ab
......@@ -67,15 +67,12 @@ Chunk* RateBasedAdaptationLogic::getNextChunk () throw(EOFException)
return this->getNextChunk();
}
for(size_t i = 0; i < segments.size(); i++)
if ( segments.size() > this->count )
{
if(i == this->count)
{
this->count++;
Chunk *chunk = new Chunk();
chunk->setUrl(segments.at(i)->getSourceUrl());
return chunk;
}
Chunk *chunk = new Chunk;
chunk->setUrl( segments.at( this->count )->getSourceUrl() );
this->count++;
return chunk;
}
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