vlc | branch: master | Christopher Mueller <christopher.muel...@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 <beauz...@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++;

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to