[vlc-devel] [PATCH] rtsp.c deadlock

Sébastien Escudier sebastien-devel at celeos.eu
Fri Dec 5 11:53:43 CET 2008


Quoting Laurent Aimar <fenrir at via.ecp.fr>:

> > Is my patch really invalid ?
>  I think so.

Hi
Could you tell me if this patch is better ?
http://mailman.videolan.org/pipermail/vlc-devel/2008-December/053555.html

If not what is the correct way to handle this ?

We have VLM which lock *vlm mutex* and issue a command which lock *lock_media
mutex* in rtsp.c. (MediaNew for example).
In the other hand we have CommandThread (rtsp.c) which lock *lock_media mutex*
and then which issue a vlm command (play for example) which lock *vlm mutex*.
Which one is wrong ?

Thank you




More information about the vlc-devel mailing list