Commit f56638f3 authored by Christopher Mueller's avatar Christopher Mueller Committed by Hugo Beauzée-Luyssen

dash: simplified adaptationlogic

Signed-off-by: default avatarHugo Beauzée-Luyssen <beauze.h@gmail.com>
parent 4bb0bc00
...@@ -68,8 +68,7 @@ Chunk* RateBasedAdaptationLogic::getNextChunk() throw(EOFException) ...@@ -68,8 +68,7 @@ Chunk* RateBasedAdaptationLogic::getNextChunk() throw(EOFException)
if ( segments.size() > this->count ) if ( segments.size() > this->count )
{ {
Segment *seg = segments.at( this->count ); Segment *seg = segments.at( this->count );
Chunk *chunk = new Chunk; Chunk *chunk = seg->toChunk();
chunk->setUrl( seg->getSourceUrl() );
//In case of UrlTemplate, we must stay on the same segment. //In case of UrlTemplate, we must stay on the same segment.
if ( seg->isSingleShot() == true ) if ( seg->isSingleShot() == true )
this->count++; this->count++;
......
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