loading a plugin can return NULL

Original commit message from CVS:
loading a plugin can return NULL
This commit is contained in:
Thomas Vander Stichele 2005-09-18 09:15:10 +00:00
parent f4f9c7ea02
commit 0f0f00e2e8

View file

@ -634,12 +634,14 @@ gst_registry_scan_path_level (GstRegistry * registry, const gchar * path,
plugin->file_size, file_status.st_size);
gst_registry_remove_plugin (gst_registry_get_default (), plugin);
newplugin = gst_plugin_load_file (filename, NULL);
if (newplugin)
gst_object_unref (newplugin);
}
gst_object_unref (plugin);
} else {
newplugin = gst_plugin_load_file (filename, NULL);
if (newplugin)
gst_object_unref (newplugin);
}