From c438545dc9e2f14f657bc0ef261fff726449867b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 22 Jun 2017 11:38:56 +0300 Subject: [PATCH] rtspsrc: Actually use the receive lock when receiving, not the send lock --- gst/rtsp/gstrtspsrc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c index 03534986ae..88e869165e 100644 --- a/gst/rtsp/gstrtspsrc.c +++ b/gst/rtsp/gstrtspsrc.c @@ -2091,9 +2091,9 @@ gst_rtspsrc_connection_receive (GstRTSPSrc * src, GstRTSPConnInfo * conninfo, GstRTSPResult ret; if (conninfo->connection) { - g_mutex_lock (&conninfo->send_lock); + g_mutex_lock (&conninfo->recv_lock); ret = gst_rtsp_connection_receive (conninfo->connection, message, timeout); - g_mutex_unlock (&conninfo->send_lock); + g_mutex_unlock (&conninfo->recv_lock); } else { ret = GST_RTSP_ERROR; }