mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 18:23:57 -06:00
audio: allow returning an error from the driver init
An error is already printed by audio_driver_init, but we can make it more precise if the driver can return an Error *. Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
aaa6a6f93d
commit
f6061733a9
15 changed files with 48 additions and 27 deletions
|
@ -619,7 +619,7 @@ static void dsound_audio_fini (void *opaque)
|
|||
g_free(s);
|
||||
}
|
||||
|
||||
static void *dsound_audio_init(Audiodev *dev)
|
||||
static void *dsound_audio_init(Audiodev *dev, Error **errp)
|
||||
{
|
||||
int err;
|
||||
HRESULT hr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue