From 5efa8b81efc0116c9b982aca9429f3c217bab317 Mon Sep 17 00:00:00 2001 From: Michael Roitzsch Date: Mon, 17 Mar 2003 15:17:08 +0000 Subject: do not skip the whole format detection, if verbosity is low CVS patchset: 4436 CVS date: 2003/03/17 15:17:08 --- src/audio_out/audio_alsa_out.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/audio_out/audio_alsa_out.c b/src/audio_out/audio_alsa_out.c index 8aed4f162..5190dd257 100644 --- a/src/audio_out/audio_alsa_out.c +++ b/src/audio_out/audio_alsa_out.c @@ -26,7 +26,7 @@ * (c) 2001 James Courtier-Dutton * * - * $Id: audio_alsa_out.c,v 1.89 2003/03/15 14:32:18 jstembridge Exp $ + * $Id: audio_alsa_out.c,v 1.90 2003/03/17 15:17:08 mroi Exp $ */ #ifdef HAVE_CONFIG_H @@ -1094,20 +1094,22 @@ static ao_driver_t *open_plugin (audio_driver_class_t *class_gen, const void *da this->capabilities = 0; - if(class->xine->verbosity >= XINE_VERBOSITY_LOG) { - printf ("audio_alsa_out : supported modes are "); + if(class->xine->verbosity >= XINE_VERBOSITY_LOG) + printf ("audio_alsa_out : supported modes are "); if (!(snd_pcm_hw_params_test_format(this->audio_fd, params, SND_PCM_FORMAT_U8))) { this->capabilities |= AO_CAP_8BITS; - printf ("8bit "); + if(class->xine->verbosity >= XINE_VERBOSITY_LOG) + printf ("8bit "); } if (!(snd_pcm_hw_params_test_channels(this->audio_fd, params, 1))) { this->capabilities |= AO_CAP_MODE_MONO; - printf ("mono "); + if(class->xine->verbosity >= XINE_VERBOSITY_LOG) + printf ("mono "); } if (!(snd_pcm_hw_params_test_channels(this->audio_fd, params, 2))) { this->capabilities |= AO_CAP_MODE_STEREO; - printf ("stereo "); - } + if(class->xine->verbosity >= XINE_VERBOSITY_LOG) + printf ("stereo "); } if (!(snd_pcm_hw_params_test_channels(this->audio_fd, params, 4)) && config->register_bool (config, -- cgit v1.2.3