]> git.proxmox.com Git - mirror_qemu.git/commitdiff
coreaudio: Notify error in coreaudio_init_out
authorAkihiko Odaki <akihiko.odaki@gmail.com>
Sat, 26 Feb 2022 11:59:53 +0000 (20:59 +0900)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 4 Mar 2022 10:22:40 +0000 (11:22 +0100)
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>
audio/coreaudio.c

index 91ea6ae975e54e6e27269c0df12a706931ed3730..0f19d0ce01c587c6ef5374cd52878ea4d927f560 100644 (file)
@@ -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;