glmixerbin: Don't unref pad templates

Otherwise we unref the reference that is owned by the element class.
This commit is contained in:
Sebastian Dröge 2015-05-13 15:42:15 +03:00
parent df7370bc2a
commit e6859acff2

View file

@ -424,7 +424,6 @@ gst_gl_mixer_bin_request_new_pad (GstElement * element, GstPadTemplate * templ,
mixer_pad = mixer_pad =
gst_element_request_pad (self->mixer, mixer_templ, req_name, NULL); gst_element_request_pad (self->mixer, mixer_templ, req_name, NULL);
gst_object_unref (mixer_templ);
g_return_val_if_fail (mixer_pad, NULL); g_return_val_if_fail (mixer_pad, NULL);
if (!_create_input_chain (self, chain, mixer_pad)) { if (!_create_input_chain (self, chain, mixer_pad)) {