mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
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.
This commit is contained in:
parent
4ed3d60bd2
commit
b5581cd0a4
1 changed files with 0 additions and 2 deletions
|
@ -104,8 +104,6 @@ gst_segment_clip_init (GstSegmentClip * self, GstSegmentClipClass * g_class)
|
||||||
GST_PAD_SET_PROXY_ALLOCATION (self->sinkpad);
|
GST_PAD_SET_PROXY_ALLOCATION (self->sinkpad);
|
||||||
gst_element_add_pad (GST_ELEMENT (self), 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");
|
templ = gst_element_class_get_pad_template (element_class, "src");
|
||||||
g_assert (templ);
|
g_assert (templ);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue