peterdelevoryas / rpms / qemu

Forked from rpms/qemu 2 years ago
Clone

Blame 0103-spice-flip-streaming-video-mode-to-off-by-default.patch

c40251
From 200413b505dfc4ae8611d523e87f1dee18a6bf0f Mon Sep 17 00:00:00 2001
c40251
From: Gerd Hoffmann <kraxel@redhat.com>
c40251
Date: Mon, 2 Dec 2013 11:17:04 +0100
c40251
Subject: [PATCH] spice: flip streaming video mode to off by default
c40251
c40251
Video streaming detection heuristics in spice-server have problems
c40251
keeping modern desktop animations (as done by gnome shell) and real
c40251
video playback apart.  This leads to jpeg compression artefacts on
c40251
your desktop, due to spice using mjpeg to send what it thinks is
c40251
a video stream.
c40251
c40251
Turn off video detection by default to avoid these artifacts.
c40251
c40251
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
c40251
Reviewed-by: Alon Levy <alevy@redhat.com>
c40251
(cherry picked from commit f1d3e586f069e17f83b669842bc02d60d509daca)
c40251
---
c40251
 ui/spice-core.c | 2 ++
c40251
 1 file changed, 2 insertions(+)
c40251
c40251
diff --git a/ui/spice-core.c b/ui/spice-core.c
c40251
index e4d533d..9fb9544 100644
c40251
--- a/ui/spice-core.c
c40251
+++ b/ui/spice-core.c
c40251
@@ -776,6 +776,8 @@ void qemu_spice_init(void)
c40251
     if (str) {
c40251
         int streaming_video = parse_stream_video(str);
c40251
         spice_server_set_streaming_video(spice_server, streaming_video);
c40251
+    } else {
c40251
+        spice_server_set_streaming_video(spice_server, SPICE_STREAM_VIDEO_OFF);
c40251
     }
c40251
 
c40251
     spice_server_set_agent_mouse