registry: fix compilation with --disable-registry
authorHavard Graff <havard.graff@tandberg.com>
Wed, 4 Jan 2012 16:10:15 +0000 (17:10 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Sat, 4 Feb 2012 15:52:21 +0000 (15:52 +0000)
__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

index 0878a00..e6f6f19 100644 (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;
 }