[vlc-devel] [PATCH 09/17] dash: simplified adaptationlogic

Christopher at mailsrv.uni-klu.ac.at Christopher at mailsrv.uni-klu.ac.at
Mon Jan 30 14:48:27 CET 2012


From: Christopher Mueller <christopher.mueller at itec.aau.at>

---
 .../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++;
-- 
1.7.0.4




More information about the vlc-devel mailing list