[Spice-commits] server/stream-channel.c

Frediano Ziglio fziglio at kemper.freedesktop.org
Tue Jan 30 15:16:55 UTC 2018


 server/stream-channel.c |    7 +++++++
 1 file changed, 7 insertions(+)

New commits:
commit 32c467c2ee405cf8d50aafa21d56277186000682
Author: Frediano Ziglio <fziglio at redhat.com>
Date:   Mon Nov 13 15:45:50 2017 +0000

    stream-channel: Tell client we are just streaming data
    
    This give an hint to client which can optimise rendering.
    
    Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
    Acked-by: Christophe de Dinechin <dinechin at redhat.com>

diff --git a/server/stream-channel.c b/server/stream-channel.c
index bfacc375..88f859f6 100644
--- a/server/stream-channel.c
+++ b/server/stream-channel.c
@@ -203,6 +203,13 @@ stream_channel_send_item(RedChannelClient *rcc, RedPipeItem *pipe_item)
             channel->width, channel->height,
             SPICE_SURFACE_FMT_32_xRGB, SPICE_SURFACE_FLAGS_PRIMARY
         };
+
+        // give an hint to client that we are sending just streaming
+        // see spice.proto for capability check here
+        if (red_channel_client_test_remote_cap(rcc, SPICE_DISPLAY_CAP_MULTI_CODEC)) {
+            surface_create.flags |= SPICE_SURFACE_FLAGS_STREAMING_MODE;
+        }
+
         spice_marshall_msg_display_surface_create(m, &surface_create);
         break;
     }


More information about the Spice-commits mailing list