mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
console: Fix spice audio tunneling after conversion
This commit is contained in:
parent
2e4afccb07
commit
9b2fd63480
@ -521,15 +521,17 @@ class SpiceViewer(Viewer):
|
|||||||
return
|
return
|
||||||
|
|
||||||
self.display_channel = channel
|
self.display_channel = channel
|
||||||
self.display = SpiceClientGtk.Display.new(self.spice_session, channel_id)
|
self.display = SpiceClientGtk.Display.new(self.spice_session,
|
||||||
|
channel_id)
|
||||||
self.console.get_window().get_object("console-vnc-viewport").add(self.display)
|
self.console.get_window().get_object("console-vnc-viewport").add(self.display)
|
||||||
self._init_widget()
|
self._init_widget()
|
||||||
self.console.connected()
|
self.console.connected()
|
||||||
return
|
return
|
||||||
|
|
||||||
if (type(channel) in [SpiceClientGLib.PlaybackChannel, SpiceClientGLib.RecordChannel] and
|
if (type(channel) in [SpiceClientGLib.PlaybackChannel,
|
||||||
|
SpiceClientGLib.RecordChannel] and
|
||||||
not self.audio):
|
not self.audio):
|
||||||
self.audio = SpiceClientGLib.Audio(self.spice_session)
|
self.audio = SpiceClientGLib.Audio.get(self.spice_session, None)
|
||||||
return
|
return
|
||||||
|
|
||||||
def get_desktop_resolution(self):
|
def get_desktop_resolution(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user