diff options
author | Gregor Boirie <gregor.boirie@parrot.com> | 2015-02-27 17:45:42 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2015-03-02 10:50:57 +0000 |
commit | bc7765eee7a23c602a71d796c66a73a43fb48073 (patch) | |
tree | 848df3fe8a299c352788c568d1fc8885d1ef9ae5 | |
parent | d2f1997c4b38b9aa0c85a9c4dffdc336cddd747d (diff) |
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
-rw-r--r-- | gst/rtsp-server/rtsp-media.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/rtsp-server/rtsp-media.c b/gst/rtsp-server/rtsp-media.c index 65ad9ff..fa5f410 100644 --- a/gst/rtsp-server/rtsp-media.c +++ b/gst/rtsp-server/rtsp-media.c @@ -1152,7 +1152,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); |