[vlc-devel] commit: Fixed decoder_GetDisplayDate while buffering. (Laurent Aimar )

Rémi Denis-Courmont rem at videolan.org
Thu Oct 9 16:42:03 CEST 2008


Le jeudi 9 octobre 2008 01:14:28 git version control, vous avez écrit :
> vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Wed Oct  8
> 22:58:23 2008 +0200| [350b1da975a31ab011d04250a3bfbadb2d6e192e] |
> committer: Laurent Aimar
>
> Fixed decoder_GetDisplayDate while buffering.
>
> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=350b1da975a31ab011
> >d04250a3bfbadb2d6e192e
>
> ---
>
>  modules/codec/avcodec/video.c |    7 +++++--
>  modules/codec/quicktime.c     |   13 +++++++++++--
>  src/input/decoder.c           |    8 +++++++-
>  3 files changed, 23 insertions(+), 5 deletions(-)
>
> diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c
> index 7a534e2..c27856c 100644
> --- a/modules/codec/avcodec/video.c
> +++ b/modules/codec/avcodec/video.c
> @@ -590,8 +590,11 @@ picture_t *DecodeVideo( decoder_t *p_dec, block_t
> **pp_block ) p_sys->i_pts = p_sys->p_ff_pic->pts;
>
>          /* Update frame late count (except when doing preroll) */
> -        if( p_sys->i_pts && decoder_GetDisplayDate(p_dec, p_sys->i_pts) <=
> mdate() && -            !(p_block->i_flags & BLOCK_FLAG_PREROLL) )
> +        mtime_t i_display_date = 0;
> +        if( !(p_block->i_flags & BLOCK_FLAG_PREROLL) )
> +            i_display_date = decoder_GetDisplayDate( p_dec, p_sys->i_pts );
> +        i_display_date = 0; 

Loos weird to me ^^

> +        if( i_display_date > 0 && i_display_date <= mdate() )

-- 
Rémi Denis-Courmont
http://git.remlab.net/cgi-bin/gitweb.cgi?p=vlc-courmisch.git;a=summary



More information about the vlc-devel mailing list