projects
/
platform
/
upstream
/
gst-plugins-good.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
062568a
)
rtpbin: Unlock before adding pad in new_payload_found
author
Trond Andersen
<trond.andersen@tandberg.com>
Wed, 7 Apr 2010 13:31:52 +0000
(15:31 +0200)
committer
Wim Taymans
<wim.taymans@collabora.co.uk>
Fri, 24 Sep 2010 12:00:11 +0000
(14:00 +0200)
Holding internal locks while potentially calling out is a source
of deadlocks, and in this case the application might subscribe to the
pad-added signal.
Fixes #630449
gst/rtpmanager/gstrtpbin.c
patch
|
blob
|
history
diff --git
a/gst/rtpmanager/gstrtpbin.c
b/gst/rtpmanager/gstrtpbin.c
index 277007aa493f337a46f00be1d6abcc016c6d5b6c..085fe8b43d15d54506bb715fef388ced6bf8880b 100644
(file)
--- a/
gst/rtpmanager/gstrtpbin.c
+++ b/
gst/rtpmanager/gstrtpbin.c
@@
-2150,9
+2150,10
@@
new_payload_found (GstElement * element, guint pt, GstPad * pad,
gst_pad_set_caps (gpad, GST_PAD_CAPS (pad));
gst_pad_set_active (gpad, TRUE);
- gst_element_add_pad (GST_ELEMENT_CAST (rtpbin), gpad);
GST_RTP_BIN_SHUTDOWN_UNLOCK (rtpbin);
+ gst_element_add_pad (GST_ELEMENT_CAST (rtpbin), gpad);
+
return;
shutdown: