gstregistry: Remove unneeded call

_priv_gst_preload_plugins is only filled if option parsing is active.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/455>
This commit is contained in:
Edward Hervey 2020-04-15 09:09:22 +02:00 committed by Edward Hervey
parent c416e2457e
commit a307c0623c

View file

@ -1844,10 +1844,12 @@ gst_update_registry (void)
res = TRUE;
#endif /* GST_DISABLE_REGISTRY */
#ifndef GST_DISABLE_OPTION_PARSING
if (_priv_gst_preload_plugins) {
GST_DEBUG ("Preloading indicated plugins...");
g_slist_foreach (_priv_gst_preload_plugins, load_plugin_func, NULL);
}
#endif
return res;
}