mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-05-23 08:38:55 +00:00
rtsp-stream: do not take lock in request_aux_receiver
Added it right before pushing the previous commit, it is incorrect and deadlocks because this function gets called from the join_bin thread, which already holds the lock, that's the reason why request_aux_sender didn't take the lock either.
This commit is contained in:
parent
988db52016
commit
8bf341ad02
1 changed files with 0 additions and 4 deletions
|
@ -2382,8 +2382,6 @@ gst_rtsp_stream_request_aux_receiver (GstRTSPStream * stream, guint sessid)
|
||||||
|
|
||||||
g_return_val_if_fail (GST_IS_RTSP_STREAM (stream), NULL);
|
g_return_val_if_fail (GST_IS_RTSP_STREAM (stream), NULL);
|
||||||
|
|
||||||
g_mutex_lock (&stream->priv->lock);
|
|
||||||
|
|
||||||
bin = gst_bin_new (NULL);
|
bin = gst_bin_new (NULL);
|
||||||
stream->priv->rtxreceive = gst_element_factory_make ("rtprtxreceive", NULL);
|
stream->priv->rtxreceive = gst_element_factory_make ("rtprtxreceive", NULL);
|
||||||
update_rtx_receive_pt_map (stream);
|
update_rtx_receive_pt_map (stream);
|
||||||
|
@ -2401,8 +2399,6 @@ gst_rtsp_stream_request_aux_receiver (GstRTSPStream * stream, guint sessid)
|
||||||
g_free (name);
|
g_free (name);
|
||||||
gst_object_unref (pad);
|
gst_object_unref (pad);
|
||||||
|
|
||||||
g_mutex_unlock (&stream->priv->lock);
|
|
||||||
|
|
||||||
return bin;
|
return bin;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue