From 7366c4e49faf6b33d300f09a0cc72e811504fb3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Wed, 16 May 2007 19:35:46 +0000 Subject: [PATCH] gst/gstplugin.c: If we fail to load a plugin because of unresolved symbols or missing libraries and spew a warning to... Original commit message from CVS: * gst/gstplugin.c: (gst_plugin_load_file): If we fail to load a plugin because of unresolved symbols or missing libraries and spew a warning to stderr, we may just as well mention which plugin it was that failed to load. --- ChangeLog | 7 +++++++ gst/gstplugin.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2410034f38..b40c19bd09 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2007-05-16 Tim-Philipp Müller + + * gst/gstplugin.c: (gst_plugin_load_file): + If we fail to load a plugin because of unresolved symbols or missing + libraries and spew a warning to stderr, we may just as well mention + which plugin it was that failed to load. + 2007-05-13 David Schleef * docs/Makefile.am: the gtk-doc makefile snippet correctly diff --git a/gst/gstplugin.c b/gst/gstplugin.c index 10f133db94..048494b590 100644 --- a/gst/gstplugin.c +++ b/gst/gstplugin.c @@ -417,7 +417,7 @@ gst_plugin_load_file (const gchar * filename, GError ** error) /* If we failed to open the shared object, then it's probably because a * plugin is linked against the wrong libraries. Print out an easy-to-see * message in this case. */ - g_warning ("Failed to load plugin: %s", g_module_error ()); + g_warning ("Failed to load plugin '%s': %s", filename, g_module_error ()); goto return_error; }