factory-uri: take ref to factory

Take a ref to the factory that we place in our list.
This commit is contained in:
Wim Taymans 2012-11-20 12:10:16 +01:00
parent a0c2dca4dd
commit 8211cdfdc2

View file

@ -147,7 +147,7 @@ payloader_filter (GstPluginFeature * feature, FilterData * data)
if (list) {
GST_DEBUG ("adding %s", GST_OBJECT_NAME (fact));
*list = g_list_prepend (*list, fact);
*list = g_list_prepend (*list, gst_object_ref (fact));
}
return FALSE;