From fefc011dfbc0f727f212baa2759434e1591e1821 Mon Sep 17 00:00:00 2001 From: Steven Hoving Date: Thu, 28 Jan 2016 09:22:18 +0100 Subject: [PATCH] rtsp-media: Fix mutex beeing unlocked while they should be locked https://bugzilla.gnome.org/show_bug.cgi?id=761226 --- gst/rtsp-server/rtsp-media.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gst/rtsp-server/rtsp-media.c b/gst/rtsp-server/rtsp-media.c index 4013813..90a9ddb 100644 --- a/gst/rtsp-server/rtsp-media.c +++ b/gst/rtsp-server/rtsp-media.c @@ -1298,7 +1298,7 @@ gst_rtsp_media_get_retransmission_time (GstRTSPMedia * media) priv = media->priv; - g_mutex_unlock (&priv->lock); + g_mutex_lock (&priv->lock); res = priv->rtx_time; g_mutex_unlock (&priv->lock); @@ -1348,7 +1348,7 @@ gst_rtsp_media_get_latency (GstRTSPMedia * media) priv = media->priv; - g_mutex_unlock (&priv->lock); + g_mutex_lock (&priv->lock); res = priv->latency; g_mutex_unlock (&priv->lock); @@ -1396,7 +1396,7 @@ gst_rtsp_media_is_time_provider (GstRTSPMedia * media) priv = media->priv; - g_mutex_unlock (&priv->lock); + g_mutex_lock (&priv->lock); res = priv->time_provider; g_mutex_unlock (&priv->lock); -- 2.7.4