media: stop thread if media is already prepared
authorAleix Conchillo FlaquƩ <aleix@oblong.com>
Tue, 11 Feb 2014 22:20:39 +0000 (14:20 -0800)
committerWim Taymans <wtaymans@redhat.com>
Tue, 18 Feb 2014 10:02:24 +0000 (11:02 +0100)
commit0bd687f2107f613d33060484fa86159c288d4a1e
tree74b071b580dcc5f71c2ca198fe945f852a8b0c6a
parente631112f3333360f7986db2511bd96755a36e5fb
media: stop thread if media is already prepared

in gst_rtsp_media_prepare() the thread is not used if media is already
prepared (e.g. media shared) so we want to stop the thread. otherwise, a
leak occurs.

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