mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
audio: reintroduce default audio backend for VNC
Make VNC use the default backend again if one is defined. The recently introduced support for disabling the VNC audio extension is still used, in case no default backend exists. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
22f84d4f78
commit
63a13c0805
4 changed files with 21 additions and 16 deletions
2
ui/vnc.c
2
ui/vnc.c
|
@ -4185,6 +4185,8 @@ void vnc_display_open(const char *id, Error **errp)
|
|||
if (!vd->audio_state) {
|
||||
goto fail;
|
||||
}
|
||||
} else {
|
||||
vd->audio_state = audio_get_default_audio_state(NULL);
|
||||
}
|
||||
|
||||
device_id = qemu_opt_get(opts, "display");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue