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/jackaudio.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/jackaudio.c')
-rw-r--r-- | audio/jackaudio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/jackaudio.c b/audio/jackaudio.c index e1eaa3477d..823e7d96ba 100644 --- a/audio/jackaudio.c +++ b/audio/jackaudio.c @@ -645,7 +645,7 @@ static int qjack_thread_creator(jack_native_thread_t *thread, } #endif -static void *qjack_init(Audiodev *dev) +static void *qjack_init(Audiodev *dev, Error **errp) { assert(dev->driver == AUDIODEV_DRIVER_JACK); return dev; |