From 90394fe15f95f58ad34684541cd480422b31d0af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Volker=20R=C3=BCmelin?= Date: Sat, 21 Jan 2023 10:47:26 +0100 Subject: audio: don't show unnecessary error messages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Let the audio_pcm_create_voice_pair_* functions handle error reporting. This avoids an additional error message in case the guest selected an unimplemented sample rate. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Volker Rümelin Reviewed-by: Marc-André Lureau Message-Id: <20230121094735.11644-2-vr_qemu@t-online.de> --- audio/audio_template.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'audio') diff --git a/audio/audio_template.h b/audio/audio_template.h index dbfb4fee4c..f0ef262ab3 100644 --- a/audio/audio_template.h +++ b/audio/audio_template.h @@ -441,6 +441,7 @@ static SW *glue(audio_pcm_create_voice_pair_, TYPE)( hw = glue(audio_pcm_hw_add_, TYPE)(s, &hw_as); if (!hw) { + dolog("Could not create a backend for voice `%s'\n", sw_name); goto err2; } @@ -540,7 +541,6 @@ SW *glue (AUD_open_, TYPE) ( } else { sw = glue(audio_pcm_create_voice_pair_, TYPE)(s, name, as); if (!sw) { - dolog ("Failed to create voice `%s'\n", name); return NULL; } } -- cgit v1.2.3