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>
Thu, 22 Jun 2017 08:39:16 +0000 (11:39 +0300)
gst/rtsp/gstrtspsrc.c

index 0353498..88e8691 100644 (file)
@@ -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;
   }