summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleix Conchillo Flaqué <aleix@oblong.com>2014-10-31 23:01:53 -0700
committerTim-Philipp Müller <tim@centricular.com>2014-12-12 16:52:02 +0000
commitf6dfe959bde0874847452ee3e863b97209dab36b (patch)
tree8b2b79d38edf03839365199e22175b2ce372b80c
parent874cc57babde0c72b2f2928304d6726ee0e74f8d (diff)
rtsp-stream: unref srtp decoder when leaving bin
https://bugzilla.gnome.org/show_bug.cgi?id=739481
-rw-r--r--gst/rtsp-server/rtsp-stream.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/rtsp-server/rtsp-stream.c b/gst/rtsp-server/rtsp-stream.c
index 7e0d3c2..76f9c9e 100644
--- a/gst/rtsp-server/rtsp-stream.c
+++ b/gst/rtsp-server/rtsp-stream.c
@@ -2027,6 +2027,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);