From: Thomas Vander Stichele Date: Thu, 25 Aug 2005 20:52:07 +0000 (+0000) Subject: respect order of plugin dirs when loading pllugins and rebuilding registry X-Git-Tag: RELEASE-0_9_2~65 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=34359ad6d7c092b9cf8a5ede892745c1ae5dc817;p=platform%2Fupstream%2Fgstreamer.git 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 --- diff --git a/ChangeLog b/ChangeLog index 5d887af..1395952 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2005-08-25 Thomas Vander Stichele + + * 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 * gst/base/gstbasetransform.c: (gst_base_transform_init), diff --git a/gst/registries/gstlibxmlregistry.c b/gst/registries/gstlibxmlregistry.c index b1af78a..1202f10 100644 --- a/gst/registries/gstlibxmlregistry.c +++ b/gst/registries/gstlibxmlregistry.c @@ -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); } diff --git a/gst/registries/gstxmlregistry.c b/gst/registries/gstxmlregistry.c index 00f1ed1..2782889 100644 --- a/gst/registries/gstxmlregistry.c +++ b/gst/registries/gstxmlregistry.c @@ -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); }