[Spice-devel] [PATCH spice-gtk 2/4] display: move reset capabilities to constructed cb
marcandre.lureau at redhat.com
marcandre.lureau at redhat.com
Thu Jan 3 17:13:24 UTC 2019
From: Marc-André Lureau <marcandre.lureau at redhat.com>
In order to set capabilities based on session configuration, post-pone
display capabilities after all channel properties are set.
Signed-off-by: Marc-André Lureau <marcandre.lureau at redhat.com>
---
src/channel-display.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/channel-display.c b/src/channel-display.c
index 079b5f7..bec72ab 100644
--- a/src/channel-display.c
+++ b/src/channel-display.c
@@ -194,6 +194,7 @@ static void spice_display_channel_constructed(GObject *object)
G_CALLBACK(display_session_mm_time_reset_cb),
SPICE_CHANNEL(object), 0);
+ spice_display_channel_set_capabilities(SPICE_CHANNEL(object));
if (G_OBJECT_CLASS(spice_display_channel_parent_class)->constructed)
G_OBJECT_CLASS(spice_display_channel_parent_class)->constructed(object);
@@ -899,7 +900,6 @@ static void spice_display_channel_init(SpiceDisplayChannel *channel)
} else {
c->enable_adaptive_streaming = TRUE;
}
- spice_display_channel_set_capabilities(SPICE_CHANNEL(channel));
}
/* ------------------------------------------------------------------ */
--
2.20.1.2.gb21ebb671b
More information about the Spice-devel
mailing list