mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-22 17:51:16 +00:00
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:
parent
c7922fb838
commit
82aeddbc61
1 changed files with 3 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue