rtspsrc: Actually use the receive lock when receiving, not the send lock
authorSebastian Dröge <sebastian@centricular.com>
Thu, 22 Jun 2017 08:38:56 +0000 (11:38 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 4 Jul 2017 06:16:53 +0000 (09:16 +0300)
gst/rtsp/gstrtspsrc.c

index 9ebccb3..9cd6388 100644 (file)
@@ -2075,9 +2075,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;
   }