respect order of plugin dirs when loading pllugins and rebuilding registry
authorThomas Vander Stichele <thomas@apestaart.org>
Thu, 25 Aug 2005 20:52:07 +0000 (20:52 +0000)
committerThomas Vander Stichele <thomas@apestaart.org>
Thu, 25 Aug 2005 20:52:07 +0000 (20:52 +0000)
Original commit message from CVS:
respect order of plugin dirs when loading pllugins and rebuilding registry

ChangeLog
gst/registries/gstlibxmlregistry.c
gst/registries/gstxmlregistry.c

index 5d887af..1395952 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2005-08-25  Thomas Vander Stichele  <thomas at apestaart dot org>
+
+       * gst/registries/gstlibxmlregistry.c: (gst_xml_registry_rebuild):
+       * gst/registries/gstxmlregistry.c: (gst_xml_registry_rebuild):
+         don't walk through the plugins backwards.  Where is all this
+         reversed logic coming from ?
+
 2005-08-25  Wim Taymans  <wim@fluendo.com>
 
        * gst/base/gstbasetransform.c: (gst_base_transform_init),
index b1af78a..1202f10 100644 (file)
@@ -1264,8 +1264,6 @@ gst_xml_registry_rebuild (GstRegistry * registry)
     walk = g_list_next (walk);
   }
 
-  plugins = g_list_reverse (plugins);
-
   do {
     length = g_list_length (plugins);
 
@@ -1274,7 +1272,7 @@ gst_xml_registry_rebuild (GstRegistry * registry)
       g_assert (walk->data);
       plugin = gst_plugin_load_file ((gchar *) walk->data, NULL);
       if (plugin) {
-        prune = g_list_prepend (prune, walk->data);
+        prune = g_list_append (prune, walk->data);
         gst_registry_add_plugin (registry, plugin);
       }
 
index 00f1ed1..2782889 100644 (file)
@@ -1400,8 +1400,6 @@ gst_xml_registry_rebuild (GstRegistry * registry)
     walk = g_list_next (walk);
   }
 
-  plugins = g_list_reverse (plugins);
-
   do {
     length = g_list_length (plugins);
 
@@ -1410,7 +1408,7 @@ gst_xml_registry_rebuild (GstRegistry * registry)
       g_assert (walk->data);
       plugin = gst_plugin_load_file ((gchar *) walk->data, NULL);
       if (plugin) {
-        prune = g_list_prepend (prune, walk->data);
+        prune = g_list_append (prune, walk->data);
         gst_registry_add_plugin (registry, plugin);
       }