From 9b2fd634809a147f260fcc6c25e5d4bb410b3ad9 Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Tue, 15 Jan 2013 18:23:17 -0500 Subject: [PATCH] console: Fix spice audio tunneling after conversion --- src/virtManager/console.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/virtManager/console.py b/src/virtManager/console.py index fc4372341..17f86d2a2 100644 --- a/src/virtManager/console.py +++ b/src/virtManager/console.py @@ -521,15 +521,17 @@ class SpiceViewer(Viewer): return 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._init_widget() self.console.connected() return - if (type(channel) in [SpiceClientGLib.PlaybackChannel, SpiceClientGLib.RecordChannel] and + if (type(channel) in [SpiceClientGLib.PlaybackChannel, + SpiceClientGLib.RecordChannel] and not self.audio): - self.audio = SpiceClientGLib.Audio(self.spice_session) + self.audio = SpiceClientGLib.Audio.get(self.spice_session, None) return def get_desktop_resolution(self):