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

dash: simplified chunk initialization

Signed-off-by: default avatarHugo Beauzée-Luyssen <beauze.h@gmail.com>
parent 8adb8fa8
......@@ -73,7 +73,6 @@ Chunk* RateBasedAdaptationLogic::getNextChunk() throw(EOFException)
{
Segment *seg = segments.at( this->count );
Chunk *chunk = seg->toChunk();
chunk->setBitrate(rep->getBandwidth());
//In case of UrlTemplate, we must stay on the same segment.
if ( seg->isSingleShot() == true )
this->count++;
......
......@@ -114,6 +114,8 @@ dash::http::Chunk* Segment::toChunk ()
chunk->setUrl(this->sourceUrl);
}
chunk->setBitrate(this->parentRepresentation->getBandwidth());
return chunk;
}
......
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