Skip to content

Instantly share code, notes, and snippets.

@ferjm
Created September 27, 2018 15:05
Show Gist options
  • Save ferjm/a24a7e8332441de330a122a6c1d46cc6 to your computer and use it in GitHub Desktop.
Save ferjm/a24a7e8332441de330a122a6c1d46cc6 to your computer and use it in GitHub Desktop.
--- a/gst/gstregistry.c
+++ b/gst/gstregistry.c
@@ -1719,7 +1719,9 @@ ensure_current_registry (GError ** error)
"gstreamer-" GST_API_VERSION, "registry." TARGET_CPU ".bin", NULL);
}
+ GST_DEBUG("ferjm - _priv_gst_disable_registry_update %d", _priv_gst_disable_registry_update);
if (!_gst_disable_registry_cache) {
+ GST_DEBUG("ferjm - if (!_gst_disable_registry_cache) { => %p", &_gst_disable_registry_cache);
GST_INFO ("reading registry cache: %s", registry_file);
have_cache = priv_gst_registry_binary_read_cache (default_registry,
registry_file);
@@ -1729,6 +1731,7 @@ ensure_current_registry (GError ** error)
}
if (have_cache) {
+ GST_DEBUG("ferjm - if (have_cache)");
do_update = !_priv_gst_disable_registry_update;
if (do_update) {
const gchar *update_env;
@@ -1741,6 +1744,7 @@ ensure_current_registry (GError ** error)
}
if (do_update) {
+ GST_DEBUG("ferjm - if (do_update)");
const gchar *reuse_env;
if ((reuse_env = g_getenv ("GST_REGISTRY_REUSE_PLUGIN_SCANNER"))) {
diff --git a/libs/gst/helpers/gst-plugin-scanner.c b/libs/gst/helpers/gst-plugin-scanner.c
index cbefb29..f6fd42e 100644
--- a/libs/gst/helpers/gst-plugin-scanner.c
+++ b/libs/gst/helpers/gst-plugin-scanner.c
@@ -51,6 +51,7 @@ main (int argc, char *argv[])
my_argv[1] = (char *) "--gst-disable-registry-update";
#ifndef GST_DISABLE_REGISTRY
+ GST_DEBUG("ferjm - setting _gst_disable_registry_cache = TRUE %p", &_gst_disable_registry_cache);
_gst_disable_registry_cache = TRUE;
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment