[vlc-devel] Potential race condition in libvlc_media_player_play

Hugo Beauzee-Luyssen beauze.h at gmail.com
Sun May 10 12:23:53 CEST 2009

On Fri, May 8, 2009 at 2:13 AM, Laurent Aimar <fenrir at via.ecp.fr> wrote:
> Hi,
> On Thu, May 07, 2009, Hugo Beauzee-Luyssen wrote:
>> input_CreateThread, which would be a function pointer. This could
>> allow the thread creator to specify something different that the Run()
>> function, which could create the variables and set the appropriate
>> callbacks before calling Run().
>> Another solution I tried was to lock a mutex, making the thread wait
>> until we want it to run. However, every mutex I came across was locked
>> at least once before the thread was actually spawned...
>  I have splitted the input creation in two step to allow attaching event
> handlers before starting the thread. I have fixed the playlist and libvlc
> to use them. Could you test it ?
> Thanks for your report.
> Regards,
> --
> fenrir
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel

It seems to work perfectly fine ! Thanks a lot :)

Hugo Beauzée-Luyssen

More information about the vlc-devel mailing list