[vlc-devel] [PATCH] fix a race condition in rtp stream output

Sébastien Escudier sebastien-devel at celeos.eu
Tue Jul 6 10:10:27 CEST 2010

On Mon, 2010-07-05 at 17:42 +0100, Rémi Denis-Courmont wrote:
> ----- Message d'origine -----
> > Do you still think it's not a good idea to lock lock_es when calling
> > RtspAddId, with this explanation ?
> Yes and I still fail to see why you would _really_ need to do that.

Ok, I modified the patch to not call RtspAddId under lock_es.
The reason of the lock when assigning p_sys->es[0]->rtsp_id is beacause
it is used in SDPGenerate from another thread.

Is this patch ok now ?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-rtp-safety-check.patch
Type: text/x-patch
Size: 1839 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20100706/6e50b5e6/attachment.bin>

More information about the vlc-devel mailing list