mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
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:
parent
b4a9f42c97
commit
409d408336
1 changed files with 3 additions and 1 deletions
|
@ -315,7 +315,9 @@ gst_elementfactory_add_padtemplate (GstElementFactory *factory,
|
|||
g_return_if_fail(templ != NULL);
|
||||
|
||||
padtemplates = factory->padtemplates;
|
||||
|
||||
|
||||
gst_object_ref (GST_OBJECT (templ));
|
||||
|
||||
while (padtemplates) {
|
||||
GstPadTemplate *oldtempl = GST_PADTEMPLATE (padtemplates->data);
|
||||
|
||||
|
|
Loading…
Reference in a new issue