From: Tim-Philipp Müller Date: Thu, 13 Sep 2012 00:26:28 +0000 (+0100) Subject: segmentclip: fix wrong pad template unref X-Git-Tag: 1.19.3~507^2~14942 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b5581cd0a4eeaa17d4250e3ac93f8408b22ea248;p=platform%2Fupstream%2Fgstreamer.git 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. --- diff --git a/gst/segmentclip/gstsegmentclip.c b/gst/segmentclip/gstsegmentclip.c index c09a722..5e09152 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);