[vlc-devel] [PATCH 2/2] avcodec: protect the flush call

Thomas Guillem thomas at gllm.fr
Mon Sep 23 10:51:25 CEST 2019


It's just a 0/1 semaphore. I don't really know why we use a semaphore here instead of a mutex. 

On Fri, Sep 20, 2019, at 17:11, Francois Cartegnie wrote:
> Le 20/09/2019 à 09:31, Thomas Guillem a écrit :
> >      /* After draining, we need to reset decoder with a flush */
> >      if( b_drained )
> > +    {
> > +        post_mt( p_sys );
> >          avcodec_flush_buffers( p_sys->p_context );
> > +        wait_mt( p_sys );
> > +    }
> 
> I have never really understood what it was doing.
> If that *_mt could be renamed or explained.
> 
> -- 
> Francois Cartegnie
> VideoLAN - VLC Developer
> _______________________________________________
> 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