From 380be80184103a80435c5462c6a21d36e8683585 Mon Sep 17 00:00:00 2001 From: Gregor Boirie Date: Fri, 27 Feb 2015 17:45:42 +0100 Subject: [PATCH] rtsp-media: fix double unlock in _get_buffer_size() Fixes an abort when calling gst_rtsp_media_get_buffer_size() because of double g_mutex_unlock () usage. https://bugzilla.gnome.org/show_bug.cgi?id=745434 --- gst/rtsp-server/rtsp-media.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/rtsp-server/rtsp-media.c b/gst/rtsp-server/rtsp-media.c index 6b81e25..a464642 100644 --- a/gst/rtsp-server/rtsp-media.c +++ b/gst/rtsp-server/rtsp-media.c @@ -1083,7 +1083,7 @@ gst_rtsp_media_get_buffer_size (GstRTSPMedia * media) priv = media->priv; - g_mutex_unlock (&priv->lock); + g_mutex_lock (&priv->lock); res = priv->buffer_size; g_mutex_unlock (&priv->lock); -- 2.4.3