From 609e618e70bf51bab6fe970b1774da8d1a8f8719 Mon Sep 17 00:00:00 2001 From: Havard Graff Date: Wed, 4 Jan 2012 17:10:15 +0100 Subject: [PATCH] registry: fix compilation with --disable-registry __registry_reuse_plugin_scanner is only defined when GST_DISABLE_REGISTRY is not defined. gstregistry.c: In function 'gst_registry_scan_plugin_file': gstregistry.c:1131:8: error: '__registry_reuse_plugin_scanner' undeclared (first use in this function) https://bugzilla.gnome.org/show_bug.cgi?id=667284 --- gst/gstregistry.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst/gstregistry.c b/gst/gstregistry.c index 0878a00a2a..e6f6f19ec6 100644 --- a/gst/gstregistry.c +++ b/gst/gstregistry.c @@ -1127,11 +1127,12 @@ gst_registry_scan_plugin_file (GstRegistryScanContext * context, gst_object_unref (newplugin); changed = TRUE; } - +#ifndef GST_DISABLE_REGISTRY if (!__registry_reuse_plugin_scanner) { clear_scan_context (context); context->helper_state = REGISTRY_SCAN_HELPER_NOT_STARTED; } +#endif return changed; }