[vlc-devel] Potential race condition in libvlc_media_player_play

Laurent Aimar fenrir at via.ecp.fr
Fri May 8 02:13:03 CEST 2009


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



More information about the vlc-devel mailing list