mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-22 15:18:21 +00:00
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.
This commit is contained in:
parent
5eec4f181f
commit
230eefbefc
1 changed files with 1 additions and 1 deletions
|
@ -368,6 +368,7 @@ gst_plugin_load_absolute (const gchar *name)
|
||||||
GST_INFO (GST_CAT_PLUGIN_LOADING,"loading plugin \"%s\"...", name);
|
GST_INFO (GST_CAT_PLUGIN_LOADING,"loading plugin \"%s\"...", name);
|
||||||
plugin = gst_plugin_new(desc->name, desc->major_version, desc->minor_version);
|
plugin = gst_plugin_new(desc->name, desc->major_version, desc->minor_version);
|
||||||
if (plugin != NULL) {
|
if (plugin != NULL) {
|
||||||
|
plugin->filename = g_strdup(name);
|
||||||
if (!((desc->plugin_init)(module, plugin))) {
|
if (!((desc->plugin_init)(module, plugin))) {
|
||||||
GST_INFO (GST_CAT_PLUGIN_LOADING,"plugin \"%s\" failed to initialise",
|
GST_INFO (GST_CAT_PLUGIN_LOADING,"plugin \"%s\" failed to initialise",
|
||||||
plugin->name);
|
plugin->name);
|
||||||
|
@ -379,7 +380,6 @@ gst_plugin_load_absolute (const gchar *name)
|
||||||
if (plugin != NULL) {
|
if (plugin != NULL) {
|
||||||
GST_INFO (GST_CAT_PLUGIN_LOADING,"plugin \"%s\" loaded: %d elements, %d types",
|
GST_INFO (GST_CAT_PLUGIN_LOADING,"plugin \"%s\" loaded: %d elements, %d types",
|
||||||
plugin->name,plugin->numelements,plugin->numtypes);
|
plugin->name,plugin->numelements,plugin->numtypes);
|
||||||
plugin->filename = g_strdup(name);
|
|
||||||
plugin->loaded = TRUE;
|
plugin->loaded = TRUE;
|
||||||
_gst_modules = g_list_prepend(_gst_modules,module);
|
_gst_modules = g_list_prepend(_gst_modules,module);
|
||||||
_gst_modules_seqno++;
|
_gst_modules_seqno++;
|
||||||
|
|
Loading…
Reference in a new issue