Blame SOURCES/0001-xephyr-Check-for-host-XVideo-support-before-trying-t.patch

4724a4
From 88c59206bffee264250142ea28713206df62d853 Mon Sep 17 00:00:00 2001
4724a4
From: Adam Jackson <ajax@redhat.com>
4724a4
Date: Thu, 6 Apr 2017 17:22:28 -0400
4724a4
Subject: [PATCH xserver] xephyr: Check for host XVideo support before trying
4724a4
 to use it
4724a4
4724a4
Otherwise xcb will treat our attempt to send xv requests as a connection
4724a4
error (quite reasonably: we're asking it to emit a request for which
4724a4
there is no defined major opcode), and we'll die quietly the first time
4724a4
we hit KdBlockhandler.
4724a4
4724a4
Signed-off-by: Adam Jackson <ajax@redhat.com>
4724a4
---
4724a4
 hw/kdrive/ephyr/ephyrvideo.c | 5 +++++
4724a4
 1 file changed, 5 insertions(+)
4724a4
4724a4
diff --git a/hw/kdrive/ephyr/ephyrvideo.c b/hw/kdrive/ephyr/ephyrvideo.c
4724a4
index 9c9c78d..671a0dd 100644
4724a4
--- a/hw/kdrive/ephyr/ephyrvideo.c
4724a4
+++ b/hw/kdrive/ephyr/ephyrvideo.c
4724a4
@@ -226,6 +226,11 @@ ephyrInitVideo(ScreenPtr pScreen)
4724a4
         return FALSE;
4724a4
     }
4724a4
 
4724a4
+    if (!hostx_has_extension(&xcb_xv_id)) {
4724a4
+        EPHYR_LOG_ERROR("Host has no XVideo extension\n");
4724a4
+        return FALSE;
4724a4
+    }
4724a4
+
4724a4
     if (!xv_priv) {
4724a4
         xv_priv = ephyrXVPrivNew();
4724a4
     }
4724a4
-- 
4724a4
2.9.3
4724a4