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
This commit is contained in:
Gregor Boirie 2015-02-27 17:45:42 +01:00 committed by Tim-Philipp Müller
parent d2f1997c4b
commit bc7765eee7

View file

@ -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);