You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gstreamer1-rtsp-server/0001-rtsp-media-fix-double-...

30 lines
884 B

From 380be80184103a80435c5462c6a21d36e8683585 Mon Sep 17 00:00:00 2001
From: Gregor Boirie <gregor.boirie@parrot.com>
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