]> git.proxmox.com Git - mirror_qemu.git/commit
audio/jack: simplify the re-init code path
authorGeoffrey McRae <geoff@hostfission.com>
Sat, 13 Jun 2020 04:05:18 +0000 (14:05 +1000)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 17 Jun 2020 12:44:51 +0000 (14:44 +0200)
commitbc81e6e56eeea88bb1e3b6105c80850ffb58841c
tree8ef87b12ca785ad56d77f4323d79686421372362
parent81e0efb2e57cfdb076887b0f99ce6f0353952617
audio/jack: simplify the re-init code path

Instead of checking for the audodev state in each code path, centralize
the check into the initialize function itself to make it safe to call it
at any time.

Signed-off-by: Geoffrey McRae <geoff@hostfission.com>
Message-id: 20200613040518.38172-7-geoff@hostfission.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
audio/jackaudio.c