Fix a race condition between rtsp and httpd
authorSébastien Escudier <sebastien-devel@celeos.eu>
Thu, 5 Feb 2009 13:08:22 +0000 (14:08 +0100)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Mon, 9 Feb 2009 16:21:51 +0000 (18:21 +0200)
commitc7eb703de55f9a0a0a03de0e025ad342bd1ab11a
tree842c075aaab6d4eea715325a9b02d3ed31b1117a
parent03029fe3ea95ef818a7ed2b48641cfbda8c2b434
Fix a race condition between rtsp and httpd

This can happen when a rtsp client teardown : RtspCallback is called.
But at the same time, if the media is deleted, (MediaDel), RtspClientDel can be called twice on the same p_media/p_rtsp

Signed-off-by: Rémi Denis-Courmont <rdenis@simphalempin.com>
modules/misc/rtsp.c