mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-08 13:18:52 +00:00
rtpbin: Unlock before adding pad in new_payload_found
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
This commit is contained in:
parent
062568a9f5
commit
800b4bdb26
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue