From ac726511ce815bdf12f5a25e4cb4f3307bae7f03 Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Mon, 5 Apr 2004 10:03:36 +0000 Subject: [PATCH] fix segfault for static plugins Original commit message from CVS: fix segfault for static plugins --- ChangeLog | 5 +++++ gst/gstplugin.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 32868a5..1a4d85f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-04-05 Thomas Vander Stichele + + * gst/gstplugin.c: (gst_plugin_load_file): + fix segfault for when original plugin was loaded statically + 2004-04-05 Benjamin Otte * testsuite/debug/category.c: (main): diff --git a/gst/gstplugin.c b/gst/gstplugin.c index 04225a7..aca9718 100644 --- a/gst/gstplugin.c +++ b/gst/gstplugin.c @@ -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, -- 2.7.4