Only load the registry cache once per process.
authorJan Schmidt <thaytan@noraisin.net>
Fri, 30 Jan 2009 13:04:52 +0000 (13:04 +0000)
committerJan Schmidt <thaytan@noraisin.net>
Tue, 6 Oct 2009 18:51:43 +0000 (19:51 +0100)
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

index d293122..7b035a6 100644 (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) {