[vlc-commits] dash: simplified adaptationlogic
Christopher Mueller
git at videolan.org
Thu Feb 2 12:33:25 CET 2012
vlc | branch: master | Christopher Mueller <christopher.mueller at itec.aau.at> | Mon Jan 30 14:48:27 2012 +0100| [f56638f314b7368a0bb65a2886b54e244e5a1312] | committer: Hugo Beauzée-Luyssen
dash: simplified adaptationlogic
Signed-off-by: Hugo Beauzée-Luyssen <beauze.h at gmail.com>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f56638f314b7368a0bb65a2886b54e244e5a1312
---
.../adaptationlogic/RateBasedAdaptationLogic.cpp | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/modules/stream_filter/dash/adaptationlogic/RateBasedAdaptationLogic.cpp b/modules/stream_filter/dash/adaptationlogic/RateBasedAdaptationLogic.cpp
index 1fa0b13..1833d05 100644
--- a/modules/stream_filter/dash/adaptationlogic/RateBasedAdaptationLogic.cpp
+++ b/modules/stream_filter/dash/adaptationlogic/RateBasedAdaptationLogic.cpp
@@ -68,8 +68,7 @@ Chunk* RateBasedAdaptationLogic::getNextChunk() throw(EOFException)
if ( segments.size() > this->count )
{
Segment *seg = segments.at( this->count );
- Chunk *chunk = new Chunk;
- chunk->setUrl( seg->getSourceUrl() );
+ Chunk *chunk = seg->toChunk();
//In case of UrlTemplate, we must stay on the same segment.
if ( seg->isSingleShot() == true )
this->count++;
More information about the vlc-commits
mailing list