move GST_PLUGIN_PATH before _gst_plugin_initialize so that it is noticed
authorSteve Baker <steve@stevebaker.org>
Wed, 20 Feb 2002 20:04:46 +0000 (20:04 +0000)
committerSteve Baker <steve@stevebaker.org>
Wed, 20 Feb 2002 20:04:46 +0000 (20:04 +0000)
Original commit message from CVS:
move GST_PLUGIN_PATH before _gst_plugin_initialize so that it is noticed

gst/gst.c

index d5a5fe1..8ef2076 100644 (file)
--- a/gst/gst.c
+++ b/gst/gst.c
@@ -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;