move GST_PLUGIN_PATH before _gst_plugin_initialize so that it is noticed

Original commit message from CVS:
move GST_PLUGIN_PATH before _gst_plugin_initialize so that it is noticed
This commit is contained in:
Steve Baker 2002-02-20 20:04:46 +00:00
parent 72cae37f93
commit cdb7e28513

View file

@ -259,6 +259,12 @@ init_post (void)
gst_autoplugfactory_get_type ();
#endif
/* check for ENV variables */
{
const gchar *plugin_path = g_getenv("GST_PLUGIN_PATH");
split_and_iterate (plugin_path, G_SEARCHPATH_SEPARATOR_S, add_path_func);
}
_gst_cpu_initialize ();
_gst_props_initialize ();
_gst_caps_initialize ();
@ -294,12 +300,6 @@ init_post (void)
_gst_progname = g_strdup("gstprog");
}
/* check for ENV variables */
{
const gchar *plugin_path = g_getenv("GST_PLUGIN_PATH");
split_and_iterate (plugin_path, G_SEARCHPATH_SEPARATOR_S, add_path_func);
}
/* FIXME: this is never true... */
if (showhelp) {
guint i;