Skip to content

Commit

Permalink
coreaudio: Notify error in coreaudio_init_out
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
akihikodaki authored and kraxel committed Mar 4, 2022
1 parent fedc1c1 commit bd7819d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions audio/coreaudio.c
Expand Up @@ -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;
Expand Down

0 comments on commit bd7819d

Please sign in to comment.