Only load the registry cache once per process.

When updating the registry, we don't need to re-read the registry cache
and waste time replacing all our existing, hopefully identical, plugins
and features that we're about to re-scan anyway.
This commit is contained in:
Jan Schmidt 2009-01-30 13:04:52 +00:00
parent c7922fb838
commit 82aeddbc61

View file

@ -1401,6 +1401,9 @@ ensure_current_registry (GError ** error)
GST_INFO ("reading registry cache: %s", registry_file);
have_cache = gst_registry_binary_read_cache (default_registry,
registry_file);
/* Only ever read the registry cache once, then disable it for
* subsequent updates during the program lifetime */
_gst_disable_registry_cache = TRUE;
}
if (have_cache) {