[vlc-devel] [PATCH 4/7] dash: simplified chunk initialization

Hugo Beauzée-Luyssen beauze.h at gmail.com
Mon Feb 20 18:39:05 CET 2012


On Mon, Feb 20, 2012 at 1:49 PM,  <Christopher at mailsrv.uni-klu.ac.at> wrote:
> From: Christopher Mueller <christopher.mueller at itec.aau.at>
>
> ---
>  .../adaptationlogic/RateBasedAdaptationLogic.cpp   |    1 -
>  modules/stream_filter/dash/mpd/Segment.cpp         |    2 ++
>  2 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/modules/stream_filter/dash/adaptationlogic/RateBasedAdaptationLogic.cpp b/modules/stream_filter/dash/adaptationlogic/RateBasedAdaptationLogic.cpp
> index e3b6b06..c331e05 100644
> --- a/modules/stream_filter/dash/adaptationlogic/RateBasedAdaptationLogic.cpp
> +++ b/modules/stream_filter/dash/adaptationlogic/RateBasedAdaptationLogic.cpp
> @@ -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++;
> diff --git a/modules/stream_filter/dash/mpd/Segment.cpp b/modules/stream_filter/dash/mpd/Segment.cpp
> index aa0f834..f133966 100644
> --- a/modules/stream_filter/dash/mpd/Segment.cpp
> +++ b/modules/stream_filter/dash/mpd/Segment.cpp
> @@ -114,6 +114,8 @@ dash::http::Chunk*      Segment::toChunk        ()
>         chunk->setUrl(this->sourceUrl);
>     }
>
> +    chunk->setBitrate(this->parentRepresentation->getBandwidth());
> +
>     return chunk;
>  }
>
> --
> 1.7.0.4
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel

Applied,

Best regards,

-- 
Hugo Beauzée-Luyssen



More information about the vlc-devel mailing list