From 82aeddbc6102cfa3284c3ee249a9c09aa6b33701 Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Fri, 30 Jan 2009 13:04:52 +0000 Subject: [PATCH] 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. --- gst/gstregistry.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gst/gstregistry.c b/gst/gstregistry.c index d293122a61..7b035a6e9f 100644 --- a/gst/gstregistry.c +++ b/gst/gstregistry.c @@ -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) {