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