gst/gst.c: split plugin paths correctly
authorThomas Vander Stichele <thomas@apestaart.org>
Tue, 11 Oct 2005 16:54:41 +0000 (16:54 +0000)
committerThomas Vander Stichele <thomas@apestaart.org>
Tue, 11 Oct 2005 16:54:41 +0000 (16:54 +0000)
Original commit message from CVS:
2005-10-11  Thomas Vander Stichele  <thomas at apestaart dot org>

* gst/gst.c: (init_post):
split plugin paths correctly

ChangeLog
gst/gst.c

index 86bddf1..2550747 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-10-11  Thomas Vander Stichele  <thomas at apestaart dot org>
+
+       * gst/gst.c: (init_post):
+         split plugin paths correctly
+
 2005-10-11  Wim Taymans  <wim@fluendo.com>
 
        * check/gst/gstevent.c: (GST_START_TEST):
index f6f79c1..37fbf89 100644 (file)
--- a/gst/gst.c
+++ b/gst/gst.c
@@ -595,8 +595,7 @@ init_post (void)
       int i;
 
       GST_DEBUG ("GST_PLUGIN_PATH set to %s", plugin_path);
-      /* FIXME this doesn't split paths correctly on windows */
-      list = g_strsplit (plugin_path, ":", 0);
+      list = g_strsplit (plugin_path, G_SEARCHPATH_SEPARATOR_S, 0);
       for (i = 0; list[i]; i++) {
         gst_registry_scan_path (default_registry, list[i]);
       }
@@ -628,8 +627,7 @@ init_post (void)
       int i;
 
       GST_DEBUG ("GST_PLUGIN_SYSTEM_PATH set to %s", plugin_path);
-      /* FIXME this doesn't split paths correctly on windows */
-      list = g_strsplit (plugin_path, ":", 0);
+      list = g_strsplit (plugin_path, G_SEARCHPATH_SEPARATOR_S, 0);
       for (i = 0; list[i]; i++) {
         gst_registry_scan_path (default_registry, list[i]);
       }