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; }