From 230eefbefc20d20d2c093f93d9f089c39f39ec56 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Sat, 5 May 2001 02:16:28 +0000 Subject: [PATCH] Make sure the plugin filaname is set before calling the init function. Original commit message from CVS: Make sure the plugin filaname is set before calling the init function. --- gst/gstplugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/gstplugin.c b/gst/gstplugin.c index fdbbd22b6c..4b6abaf099 100644 --- a/gst/gstplugin.c +++ b/gst/gstplugin.c @@ -368,6 +368,7 @@ gst_plugin_load_absolute (const gchar *name) GST_INFO (GST_CAT_PLUGIN_LOADING,"loading plugin \"%s\"...", name); plugin = gst_plugin_new(desc->name, desc->major_version, desc->minor_version); if (plugin != NULL) { + plugin->filename = g_strdup(name); if (!((desc->plugin_init)(module, plugin))) { GST_INFO (GST_CAT_PLUGIN_LOADING,"plugin \"%s\" failed to initialise", plugin->name); @@ -379,7 +380,6 @@ gst_plugin_load_absolute (const gchar *name) if (plugin != NULL) { GST_INFO (GST_CAT_PLUGIN_LOADING,"plugin \"%s\" loaded: %d elements, %d types", plugin->name,plugin->numelements,plugin->numtypes); - plugin->filename = g_strdup(name); plugin->loaded = TRUE; _gst_modules = g_list_prepend(_gst_modules,module); _gst_modules_seqno++; -- 2.34.1