summaryrefslogtreecommitdiff
path: root/gst/segmentclip
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2012-09-13 01:26:28 +0100
committerTim-Philipp Müller <tim@centricular.net>2012-09-13 01:26:28 +0100
commitb5581cd0a4eeaa17d4250e3ac93f8408b22ea248 (patch)
treef0707f01548b3a25a5351c25543b59b1864500c1 /gst/segmentclip
parent4ed3d60bd28484d65b0d3502701cd657e93d1484 (diff)
downloadgstreamer-plugins-bad-b5581cd0a4eeaa17d4250e3ac93f8408b22ea248.tar.gz
segmentclip: fix wrong pad template unref
Blows up when trying to instantiate a second clip element of the same type, like in the generic/states unit test.
Diffstat (limited to 'gst/segmentclip')
-rw-r--r--gst/segmentclip/gstsegmentclip.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/gst/segmentclip/gstsegmentclip.c b/gst/segmentclip/gstsegmentclip.c
index c09a72293..5e09152b0 100644
--- a/gst/segmentclip/gstsegmentclip.c
+++ b/gst/segmentclip/gstsegmentclip.c
@@ -104,8 +104,6 @@ gst_segment_clip_init (GstSegmentClip * self, GstSegmentClipClass * g_class)
GST_PAD_SET_PROXY_ALLOCATION (self->sinkpad);
gst_element_add_pad (GST_ELEMENT (self), self->sinkpad);
- gst_object_unref (templ);
-
templ = gst_element_class_get_pad_template (element_class, "src");
g_assert (templ);