From 9b26b6e3d5b235336d3fa5b7d48d00e5f121ec4f Mon Sep 17 00:00:00 2001 From: David Schleef Date: Sat, 21 Sep 2002 21:56:49 +0000 Subject: [PATCH] Merge 1.8->1.9. Fixes GST_IS_OBJECT assertion failure and other. Original commit message from CVS: Merge 1.8->1.9. Fixes GST_IS_OBJECT assertion failure and other. --- tools/gst-compprep.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tools/gst-compprep.c b/tools/gst-compprep.c index a825df9e80..c8e8c22e03 100644 --- a/tools/gst-compprep.c +++ b/tools/gst-compprep.c @@ -19,14 +19,14 @@ int main(int argc,char *argv[]) { doc = xmlNewDoc("1.0"); doc->xmlRootNode = xmlNewDocNode(doc, NULL, "GST-CompletionRegistry", NULL); - plugins = gst_registry_pool_plugin_list(); + plugins = g_list_copy(gst_registry_pool_plugin_list()); while (plugins) { GstPlugin *plugin; plugin = (GstPlugin *)(plugins->data); plugins = g_list_next (plugins); - features = gst_plugin_get_feature_list(plugin); + features = g_list_copy(gst_plugin_get_feature_list(plugin)); while (features) { GstPluginFeature *feature; GstElementFactory *factory; @@ -40,9 +40,10 @@ int main(int argc,char *argv[]) { factory = GST_ELEMENT_FACTORY (feature); factorynode = xmlNewChild (doc->xmlRootNode, NULL, "element", NULL); - xmlNewChild (factorynode, NULL, "name", gst_object_get_name (GST_OBJECT (factory))); + xmlNewChild (factorynode, NULL, "name", + GST_PLUGIN_FEATURE_NAME(GST_PLUGIN_FEATURE(factory))); - element = gst_element_factory_create(factory,"element"); + element = gst_element_factory_create(factory,NULL); GST_DEBUG(GST_CAT_PLUGIN_LOADING, "adding factory %s", gst_object_get_name (GST_OBJECT (factory))); if (element == NULL) {