mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-05 17:09:48 +00:00
rtspsrc: Actually use the receive lock when receiving, not the send lock
This commit is contained in:
parent
5ff3106445
commit
c438545dc9
1 changed files with 2 additions and 2 deletions
|
@ -2091,9 +2091,9 @@ gst_rtspsrc_connection_receive (GstRTSPSrc * src, GstRTSPConnInfo * conninfo,
|
||||||
GstRTSPResult ret;
|
GstRTSPResult ret;
|
||||||
|
|
||||||
if (conninfo->connection) {
|
if (conninfo->connection) {
|
||||||
g_mutex_lock (&conninfo->send_lock);
|
g_mutex_lock (&conninfo->recv_lock);
|
||||||
ret = gst_rtsp_connection_receive (conninfo->connection, message, timeout);
|
ret = gst_rtsp_connection_receive (conninfo->connection, message, timeout);
|
||||||
g_mutex_unlock (&conninfo->send_lock);
|
g_mutex_unlock (&conninfo->recv_lock);
|
||||||
} else {
|
} else {
|
||||||
ret = GST_RTSP_ERROR;
|
ret = GST_RTSP_ERROR;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue