[vlc-devel] [RFC PATCH 3/5] decoder: display one frame on flush

Rémi Denis-Courmont remi at remlab.net
Fri Nov 6 17:38:22 CET 2015


I don´t know why this is needed or desirable. Please clarify the commit log.

On Friday 06 November 2015 14:48:45 Thomas Guillem wrote:
> ---
>  src/input/decoder.c | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/src/input/decoder.c b/src/input/decoder.c
> index c89b49a..0d52f2e 100644
> --- a/src/input/decoder.c
> +++ b/src/input/decoder.c
> @@ -1943,6 +1943,11 @@ static void DecoderFlush( decoder_t *p_dec )
>      /* Empty the fifo */
>      block_ChainRelease( vlc_fifo_DequeueAllUnlocked( p_owner->p_fifo ) );
>      p_owner->b_draining = false; /* flush supersedes drain */
> +
> +    if( p_owner->fmt.i_cat == VIDEO_ES && p_owner->paused
> +     && p_owner->frames_countdown == 0 )
> +        p_owner->frames_countdown++;
> +
>      vlc_fifo_Unlock( p_owner->p_fifo );
> 
>      /* Monitor for flush end */

-- 
Rémi Denis-Courmont
http://www.remlab.net/



More information about the vlc-devel mailing list