From 48b6b8e3e60369347972298aa96546912970ada5 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 3 Mar 2014 12:17:48 +0100 Subject: [PATCH] stream: release some locks in error cases --- gst/rtsp-server/rtsp-stream.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gst/rtsp-server/rtsp-stream.c b/gst/rtsp-server/rtsp-stream.c index ec82a1f..fb20090 100644 --- a/gst/rtsp-server/rtsp-stream.c +++ b/gst/rtsp-server/rtsp-stream.c @@ -597,16 +597,19 @@ gst_rtsp_stream_is_transport_supported (GstRTSPStream * stream, unsupported_transmode: { GST_DEBUG ("unsupported transport mode %d", transport->trans); + g_mutex_unlock (&priv->lock); return FALSE; } unsupported_profile: { GST_DEBUG ("unsupported profile %d", transport->profile); + g_mutex_unlock (&priv->lock); return FALSE; } unsupported_ltrans: { GST_DEBUG ("unsupported lower transport %d", transport->lower_transport); + g_mutex_unlock (&priv->lock); return FALSE; } } @@ -1854,6 +1857,7 @@ gst_rtsp_stream_leave_bin (GstRTSPStream * stream, GstBin * bin, was_not_joined: { + g_mutex_unlock (&priv->lock); return TRUE; } } -- 2.7.4