mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-14 13:21:28 +00:00
- 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:
parent
1ee147a106
commit
089b12b78e
2 changed files with 6 additions and 3 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue