diff options
author | Akihiko Odaki <akihiko.odaki@gmail.com> | 2022-02-26 20:59:53 +0900 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2022-03-04 11:22:40 +0100 |
commit | bd7819de227f47df72e21558c019147673726a74 (patch) | |
tree | aa7bc2ccfa8034f404ea032de76b1e351d4f199a /audio | |
parent | fedc1c19155f78f4f5be58092cd54cef0ea874ff (diff) | |
download | qemu-bd7819de227f47df72e21558c019147673726a74.zip qemu-bd7819de227f47df72e21558c019147673726a74.tar.gz qemu-bd7819de227f47df72e21558c019147673726a74.tar.bz2 |
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 <akihiko.odaki@gmail.com>
Reviewed-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20220226115953.60335-1-akihiko.odaki@gmail.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'audio')
-rw-r--r-- | audio/coreaudio.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/audio/coreaudio.c b/audio/coreaudio.c index 91ea6ae..0f19d0c 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; |