[vlc-devel] Crash in vlc_cancel while input/rtp creation

Sébastien Escudier sebastien-devel at celeos.eu
Fri Mar 12 10:01:13 CET 2010



Hi,

I have a race condition bug where vlc_cancel(thread id=0) is called on a thread
being created at the same time.

I would like to know how this is supposed to be avoided ?
I thought I could call vlc_savecancel before thread creation but I don't see it
anywhere else so it must not be the solution.

The bug is happening when input thread is opening a rtp stream output module.
The thread is created in rtp.c Add function.

And at the same time input is destroyed and the thread is cancelled in
input_Stop -> ObjectKillChildrens

Regards,

Seb



More information about the vlc-devel mailing list