registry: improve plugin loader failure message for uninstalled setups
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 7 Oct 2009 13:34:17 +0000 (14:34 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 7 Oct 2009 13:39:03 +0000 (14:39 +0100)
Everyone running an uninstalled git setup is going to wonder about
this failure next time they update, so let's mention the solution
in the error message.

gst/gstregistry.c

index e277742..ac5598e 100644 (file)
@@ -890,7 +890,12 @@ gst_registry_scan_plugin_file (GstRegistryScanContext * context,
     GST_DEBUG ("Using scan-helper to load plugin %s", filename);
     if (!_priv_gst_plugin_loader_funcs.load (context->helper,
             filename, file_size, file_mtime)) {
-      g_warning ("External plugin loader failed...");
+      g_warning ("External plugin loader failed. This most likely means that "
+          "the plugin loader helper binary was not found or could not be run. "
+          "%s", (g_getenv ("GST_PLUGIN_PATH") != NULL) ?
+          "If you are running an uninstalled GStreamer setup, you might need "
+          "to update your gst-uninstalled script so that the "
+          "GST_PLUGIN_SCANNER environment variable gets set." : "");
       context->helper_state = REGISTRY_SCAN_HELPER_DISABLED;
     }
   } else {