rtpmanagerbad: reduce lock in rtpsink

This commit is contained in:
Marc Leeman 2020-02-19 17:07:23 +01:00
parent 61b062a12e
commit a710fbc12b

View file

@ -251,11 +251,11 @@ gst_rtp_sink_request_new_pad (GstElement * element,
return NULL;
GST_RTP_SINK_LOCK (self);
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);
GST_RTP_SINK_UNLOCK (self);
return pad;
}