From: Marc-André Lureau <marcandre.lur...@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.lur...@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

_______________________________________________
Spice-devel mailing list
Spice-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/spice-devel

Reply via email to