diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2023-09-22 19:13:44 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2023-10-03 10:29:39 +0200 |
commit | f6061733a96314ccb732efe6c91357d66f8970af (patch) | |
tree | 5abdb6f35d1cb78f5a46d4b7c79384070a317066 /audio/dsoundaudio.c | |
parent | aaa6a6f93dc88f9201b9872fa64a565d52628208 (diff) |
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>
Diffstat (limited to 'audio/dsoundaudio.c')
-rw-r--r-- | audio/dsoundaudio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/dsoundaudio.c b/audio/dsoundaudio.c index 3fb67ec3ee..eefde88edc 100644 --- a/audio/dsoundaudio.c +++ b/audio/dsoundaudio.c @@ -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; |