factory needs a ref to the padtemplate so that the padtemplate doesn't disappear when the plugin element is unreffed

Original commit message from CVS:
factory needs a ref to the padtemplate so that the padtemplate doesn't disappear when the plugin element is unreffed
This commit is contained in:
Steve Baker 2001-09-29 09:53:07 +00:00
parent b4a9f42c97
commit 409d408336

View file

@ -316,6 +316,8 @@ gst_elementfactory_add_padtemplate (GstElementFactory *factory,
padtemplates = factory->padtemplates;
gst_object_ref (GST_OBJECT (templ));
while (padtemplates) {
GstPadTemplate *oldtempl = GST_PADTEMPLATE (padtemplates->data);