registry: improve plugin loader failure message for uninstalled setups

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.
This commit is contained in:
Tim-Philipp Müller 2009-10-07 14:34:17 +01:00
parent 31218013a3
commit 53c9c9d975

View 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 {