From: Akihiko Odaki Date: Sat, 26 Feb 2022 11:59:53 +0000 (+0900) Subject: coreaudio: Notify error in coreaudio_init_out X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=bd7819de227f47df72e21558c019147673726a74;p=qemu.git coreaudio: Notify error in coreaudio_init_out Otherwise, the audio subsystem tries to use the voice and eventually aborts due to the maximum number of samples in the buffer is not set. Signed-off-by: Akihiko Odaki Reviewed-by: Christian Schoenebeck Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20220226115953.60335-1-akihiko.odaki@gmail.com> Signed-off-by: Gerd Hoffmann --- diff --git a/audio/coreaudio.c b/audio/coreaudio.c index 91ea6ae975..0f19d0ce01 100644 --- a/audio/coreaudio.c +++ b/audio/coreaudio.c @@ -603,6 +603,8 @@ static int coreaudio_init_out(HWVoiceOut *hw, struct audsettings *as, coreaudio_playback_logerr(status, "Could not remove voice property change listener\n"); } + + return -1; } return 0;