mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-04 16:39:39 +00:00
plugin: Ignore an empty dependency list.
If a plugin registers an empty dependency set, just ignore it rather than serialising and checking an empty set.
This commit is contained in:
parent
83252f42c9
commit
69bce376b0
1 changed files with 7 additions and 1 deletions
|
@ -1605,7 +1605,13 @@ gst_plugin_add_dependency (GstPlugin * plugin, const gchar ** env_vars,
|
|||
GList *l;
|
||||
|
||||
g_return_if_fail (GST_IS_PLUGIN (plugin));
|
||||
g_return_if_fail (env_vars != NULL || paths != NULL);
|
||||
|
||||
if ((env_vars == NULL || env_vars[0] == NULL) &&
|
||||
(paths == NULL || paths[0] == NULL)) {
|
||||
GST_DEBUG_OBJECT (plugin,
|
||||
"plugin registered empty dependency set. Ignoring");
|
||||
return;
|
||||
}
|
||||
|
||||
for (l = plugin->priv->deps; l != NULL; l = l->next) {
|
||||
if (gst_plugin_ext_dep_equals (l->data, env_vars, paths, names, flags)) {
|
||||
|
|
Loading…
Reference in a new issue