fix segfault for static plugins

Original commit message from CVS:
fix segfault for static plugins
This commit is contained in:
Thomas Vander Stichele 2004-04-05 10:03:36 +00:00
parent e25612f443
commit ac726511ce
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2004-04-05 Thomas Vander Stichele <thomas at apestaart dot org>
* gst/gstplugin.c: (gst_plugin_load_file):
fix segfault for when original plugin was loaded statically
2004-04-05 Benjamin Otte <otte@gnome.org>
* testsuite/debug/category.c: (main):

View file

@ -330,7 +330,7 @@ gst_plugin_load_file (const gchar * filename, GError ** error)
} else {
free_plugin = FALSE;
if (gst_plugin_is_loaded (plugin)) {
if (strcmp (plugin->filename, filename) != 0) {
if (plugin->filename && strcmp (plugin->filename, filename) != 0) {
GST_WARNING
("plugin %p from file \"%s\" with same name %s is already "
"loaded, aborting loading of \"%s\"", plugin, plugin->filename,