summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorThiago Santos <thiagoss@osg.samsung.com>2014-08-19 17:17:33 -0300
committerThiago Santos <thiagoss@osg.samsung.com>2014-08-19 17:17:33 -0300
commit1cabb3b5a5bb72b18d25b4a9d17a626448272efc (patch)
treeece7e2f1ea55647dffa3349ef8ffaefe7165f2d1 /ext
parent4afa05e567272ef8084e8f82b89fb1e545e62ef1 (diff)
dashdemux: unref pad reference when removing internal source in error
Avoids leaking the pad in error situations
Diffstat (limited to 'ext')
-rw-r--r--ext/dash/gstdashdemux.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/dash/gstdashdemux.c b/ext/dash/gstdashdemux.c
index 1aae5dd8f..e188774ee 100644
--- a/ext/dash/gstdashdemux.c
+++ b/ext/dash/gstdashdemux.c
@@ -2077,9 +2077,11 @@ gst_dash_demux_stream_update_source (GstDashDemuxStream * stream,
GST_DEBUG_OBJECT (demux, "Failed to re-use old source element: %s",
err->message);
g_clear_error (&err);
+ gst_object_unref (stream->src_srcpad);
gst_element_set_state (stream->src, GST_STATE_NULL);
gst_bin_remove (GST_BIN_CAST (demux), stream->src);
stream->src = NULL;
+ stream->src_srcpad = NULL;
}
}
g_free (old_uri);