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
This commit is contained in:
Havard Graff 2012-01-04 17:10:15 +01:00 committed by Tim-Philipp Müller
parent ec7a7c318a
commit 609e618e70

View file

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