[Spice-devel] [spice-gtk PATCH 7/7] migration: copy enable-smartcard and enable-audio state to the migrated session
Yonit Halperin
yhalperi at redhat.com
Wed Aug 15 00:56:42 PDT 2012
Otherwise, we will not create smartcard channel on the destination
side, and we will create audio channels, no matter if they existed
of didn't exist for the src side.
---
gtk/spice-session.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/gtk/spice-session.c b/gtk/spice-session.c
index bfe6b89..47a7ec8 100644
--- a/gtk/spice-session.c
+++ b/gtk/spice-session.c
@@ -1089,8 +1089,14 @@ SpiceSession *spice_session_new_from_session(SpiceSession *session)
"verify", &c->verify,
"smartcard-certificates", &c->smartcard_certificates,
"smartcard-db", &c->smartcard_db,
+ "enable-smartcard", &c->smartcard,
+ "enable-audio", &c->audio,
NULL);
+ g_object_set(copy,
+ "enable-smartcard", c->smartcard,
+ "enable-audio", c->audio,
+ NULL);
c->client_provided_sockets = s->client_provided_sockets;
c->protocol = s->protocol;
c->connection_id = s->connection_id;
--
1.7.7.6
More information about the Spice-devel
mailing list