projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e631112
)
media: stop thread if media is already prepared
author
Aleix Conchillo FlaquƩ
<aleix@oblong.com>
Tue, 11 Feb 2014 22:20:39 +0000
(14:20 -0800)
committer
Wim Taymans
<wtaymans@redhat.com>
Tue, 18 Feb 2014 10:02:24 +0000
(11:02 +0100)
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
patch
|
blob
|
history
diff --git
a/gst/rtsp-server/rtsp-media.c
b/gst/rtsp-server/rtsp-media.c
index
69ecded
..
033e973
100644
(file)
--- a/
gst/rtsp-server/rtsp-media.c
+++ b/
gst/rtsp-server/rtsp-media.c
@@
-2204,6
+2204,8
@@
wait_status:
was_prepared:
{
GST_LOG ("media %p was prepared", media);
+ /* we are not going to use the giving thread, so stop it. */
+ gst_rtsp_thread_stop (thread);
g_rec_mutex_unlock (&priv->state_lock);
return TRUE;
}