- Fixed #110757, added g_list_copy instead of messing up our private list.

Original commit message from CVS:
- Fixed #110757, added g_list_copy instead of messing up our private
list.
This commit is contained in:
Wim Taymans 2003-05-06 20:58:07 +00:00
parent 1ee147a106
commit 089b12b78e
2 changed files with 6 additions and 3 deletions

View file

@ -361,10 +361,13 @@ gst_plugin_is_loaded (GstPlugin *plugin)
GstPluginFeature*
gst_plugin_find_feature (GstPlugin *plugin, const gchar *name, GType type)
{
GList *features = plugin->features;
GList *features;
g_return_val_if_fail (plugin != NULL, NULL);
g_return_val_if_fail (name != NULL, NULL);
features = plugin->features;
while (features) {
GstPluginFeature *feature = GST_PLUGIN_FEATURE (features->data);

View file

@ -563,7 +563,7 @@ gst_registry_pool_plugin_list (void)
walk = g_list_next (walk);
}
return g_list_concat (_gst_registry_pool_plugins, result);
return g_list_concat (g_list_copy (_gst_registry_pool_plugins), result);
}
/**