mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-05-13 19:58:57 +00:00
osxaudio: Make some debug code compile conditionally
https://bugzilla.gnome.org/show_bug.cgi?id=740987
This commit is contained in:
parent
b06ae28061
commit
945aaa0a35
1 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue