From dfc792c904394b3ac00215b142393725deebca37 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Tue, 10 Nov 2009 00:57:00 +0000 Subject: [PATCH] registrychunks: fix compilation with debugging disabled Add ugly ifdef to fix unused variable warning when compiling with debug logging disabled. --- gst/gstregistrychunks.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gst/gstregistrychunks.c b/gst/gstregistrychunks.c index b706caa..e35a420 100644 --- a/gst/gstregistrychunks.c +++ b/gst/gstregistrychunks.c @@ -725,11 +725,13 @@ gboolean _priv_gst_registry_chunks_load_plugin (GstRegistry * registry, gchar ** in, gchar * end, GstPlugin ** out_plugin) { +#ifndef GST_DISABLE_GST_DEBUG + gchar *start = *in; +#endif GstRegistryChunkPluginElement *pe; GstPlugin *plugin = NULL; gchar *cache_str = NULL; guint i, n; - gchar *start = *in; align (*in); GST_LOG ("Reading/casting for GstRegistryChunkPluginElement at address %p", -- 2.7.4