also need to ref the template in gst_pad_new_from_template

Original commit message from CVS:
also need to ref the template in gst_pad_new_from_template
This commit is contained in:
Steve Baker 2001-09-29 15:39:00 +00:00
parent b1a72c0307
commit b213eab345

View file

@ -288,6 +288,7 @@ gst_pad_new_from_template (GstPadTemplate *templ,
pad = gst_pad_new (name, templ->direction); pad = gst_pad_new (name, templ->direction);
gst_object_ref (GST_OBJECT (templ));
GST_PAD_PADTEMPLATE(pad) = templ; GST_PAD_PADTEMPLATE(pad) = templ;
return pad; return pad;