rtsp-stream: unref srtp decoder when leaving bin
authorAleix Conchillo Flaqué <aleix@oblong.com>
Sat, 1 Nov 2014 06:01:53 +0000 (23:01 -0700)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 1 Nov 2014 11:26:14 +0000 (11:26 +0000)
https://bugzilla.gnome.org/show_bug.cgi?id=739481

gst/rtsp-server/rtsp-stream.c

index be66e13..2d237d1 100644 (file)
@@ -2062,6 +2062,8 @@ gst_rtsp_stream_leave_bin (GstRTSPStream * stream, GstBin * bin,
 
   if (priv->srtpenc)
     gst_object_unref (priv->srtpenc);
+  if (priv->srtpdec)
+    gst_object_unref (priv->srtpdec);
 
   priv->is_joined = FALSE;
   g_mutex_unlock (&priv->lock);