client: set session media to NULL without the lock
authorAleix Conchillo FlaquƩ <aleix@oblong.com>
Tue, 30 Sep 2014 23:36:51 +0000 (16:36 -0700)
committerLuis de Bethencourt <luis.bg@samsung.com>
Wed, 1 Oct 2014 09:31:04 +0000 (10:31 +0100)
commit6c0c90c9d22a3c969e364d559f0a4174931bd08f
treece92b5602ba8952e699b23d96ffe6cb6f5fea07e
parent1badcd83c346391985432d51ece51ba7fa3eb09e
client: set session media to NULL without the lock

We need to set session medias to NULL without the client lock otherwise
we can end up in a deadlock if another thread is waiting for the lock
and media unprepare is also waiting for that thread to end.

https://bugzilla.gnome.org/show_bug.cgi?id=737690
gst/rtsp-server/rtsp-client.c