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

Thomas Guillem thomas at gllm.fr
Sat Nov 7 14:27:40 CET 2015



On Fri, Nov 6, 2015, at 17:38, Rémi Denis-Courmont wrote:
> I don´t know why this is needed or desirable. Please clarify the commit
> log.

Currently (or yesterday), no frames are displayed when you seek while
paused.
This commit increment the frame_countdown, so that one frame will be
displayed even if video is paused.

I'll check again if it's necessary with your last patches.

> 
> 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/
> 
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel


More information about the vlc-devel mailing list