From 945aaa0a35f3aea17dd527e49256ffe23c317e58 Mon Sep 17 00:00:00 2001 From: Arun Raghavan Date: Fri, 28 Nov 2014 18:37:02 +0530 Subject: [PATCH] osxaudio: Make some debug code compile conditionally https://bugzilla.gnome.org/show_bug.cgi?id=740987 --- sys/osxaudio/gstosxcoreaudiohal.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sys/osxaudio/gstosxcoreaudiohal.c b/sys/osxaudio/gstosxcoreaudiohal.c index 0fd4ab0..92e4046 100644 --- a/sys/osxaudio/gstosxcoreaudiohal.c +++ b/sys/osxaudio/gstosxcoreaudiohal.c @@ -1152,9 +1152,11 @@ gst_core_audio_select_device_impl (AudioDeviceID * device_id, gboolean output) { AudioDeviceID *devices = NULL; AudioDeviceID default_device_id = 0; - AudioChannelLayout *channel_layout; gint i, ndevices = 0; gboolean res = FALSE; +#ifdef GST_CORE_AUDIO_DEBUG + AudioChannelLayout *channel_layout; +#endif devices = _audio_system_get_devices (&ndevices); @@ -1165,6 +1167,7 @@ gst_core_audio_select_device_impl (AudioDeviceID * device_id, gboolean output) GST_DEBUG ("found %d audio device(s)", ndevices); +#ifdef GST_CORE_AUDIO_DEBUG for (i = 0; i < ndevices; i++) { gchar *device_name; @@ -1187,6 +1190,7 @@ gst_core_audio_select_device_impl (AudioDeviceID * device_id, gboolean output) g_free (device_name); } } +#endif /* Find the ID of the default output device */ default_device_id = _audio_system_get_default_device (output); -- 2.7.4