audio: add sanity check
commit06c8c375389a54d8e4457d967f4f0896caecefb2
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 15 Dec 2020 08:11:51 +0000 (15 09:11 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 15 Dec 2020 08:28:52 +0000 (15 09:28 +0100)
tree04a901582b7d734d02d9d40f4f807fccae5294e6
parentab32b78cd1b3b31950c4332f0fa8b192295d77fd
audio: add sanity check

Check whenever we actually found the spiceaudio driver
before flipping the can_be_default field.

Fixes: f0c4555edfdd ("audio: remove qemu_spice_audio_init()")
Buglink: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=977301
Reported-by: dann frazier <dann.frazier@canonical.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-Id: <20201215081151.20095-1-kraxel@redhat.com>
audio/audio.c