[vlc-devel] [PATCH] lib: media: Use an atomic refcounter

Hugo Beauzée-Luyssen hugo at beauzee.fr
Wed Oct 9 13:59:09 CEST 2019

On Thu, Oct 3, 2019, at 7:07 PM, Rémi Denis-Courmont wrote:
> Le keskiviikkona 2. lokakuuta 2019, 11.35.57 EEST Hugo Beauzée-Luyssen a écrit 
> :
> > Instead of an unprotected plain integer
> Do we allow concurrent use of a single media? AFAIR, this was never defined to 
> begin with.

I'd say that nothing prevents it, and that most of the underlying code appears thread safe.

>From a quick look, only the state variable is unprotected, and it appears to never be set anymore (or at least I can't find any reference to libvlc_media_set_state and that function isn't exported to the public libvlc API)

  Hugo Beauzée-Luyssen
  hugo at beauzee.fr

More information about the vlc-devel mailing list