respect order of plugin dirs when loading pllugins and rebuilding registry

Original commit message from CVS:
respect order of plugin dirs when loading pllugins and rebuilding registry
This commit is contained in:
Thomas Vander Stichele 2005-08-25 20:52:07 +00:00
parent b9ab9854e3
commit 34359ad6d7
3 changed files with 9 additions and 6 deletions

View file

@ -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),

View 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);
}

View 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);
}