mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-05 07:40:34 +01:00
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>
Reviewed-by: Eric Anholt <eric@anholt.net>
(cherry picked from commit 14d2fe74f4)
This commit is contained in:
parent
60ae865a70
commit
74126530c0
1 changed files with 5 additions and 0 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue