mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
rtpmanagerbad: reduce lock in rtpsink
This commit is contained in:
parent
61b062a12e
commit
a710fbc12b
1 changed files with 2 additions and 2 deletions
|
@ -251,11 +251,11 @@ gst_rtp_sink_request_new_pad (GstElement * element,
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
GST_RTP_SINK_LOCK (self);
|
GST_RTP_SINK_LOCK (self);
|
||||||
|
|
||||||
pad = gst_element_get_request_pad (self->rtpbin, "send_rtp_sink_%u");
|
pad = gst_element_get_request_pad (self->rtpbin, "send_rtp_sink_%u");
|
||||||
|
GST_RTP_SINK_UNLOCK (self);
|
||||||
|
|
||||||
g_return_val_if_fail (pad != NULL, NULL);
|
g_return_val_if_fail (pad != NULL, NULL);
|
||||||
|
|
||||||
GST_RTP_SINK_UNLOCK (self);
|
|
||||||
|
|
||||||
return pad;
|
return pad;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue