Subject: Fix mpv on X11

From: phodina <[email-masked]>
Date: Sun, 18 Dec 2022 00:21:40 +0000

Hi,

for some reason the mpv player is broken on X11 and does not play movies. Enabling support for X11 solves the problem.

$ mpv movie.mkv
(+) Video --vid=1 (*) (h264 1280x544 23.976fps)
(+) Audio --aid=1 (*) (aac 2ch 48000Hz)
[vo/gpu] VT_GETMODE failed: Inappropriate ioctl for device
[vo/gpu/opengl] Failed to set up VT switcher. Terminal switching will be unavailable.
[vo/gpu] Failed to commit ModeSetting atomic request (-13)
[vo/gpu/opengl] Failed to set CRTC for connector 95: Permission denied
Error opening/initializing the selected video_out (--vo) device.Video: no video

----
Petr

From 80111b265152cec985adf862fc077e81c0b2b931 Mon Sep 17 00:00:00 2001
From: Petr Hodina <[email-masked]>
Date: Sun, 18 Dec 2022 01:01:17 +0100
Subject: [PATCH] gnu: mpv: Enable x11 video.

* gnu/packages/video.scm (mpv)[arguments]: Enable x11 video in configure-flags.

diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index a15c86ee07..1cbe07f1bf 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -2214,6 +2214,7 @@ (define-public mpv
       #~(list "--enable-libmpv-shared"
               "--enable-cdda"
               "--enable-dvdnav"
+              "--enable-x11"
               "--disable-build-date")
       ;; No check function defined.
       #:tests? #f))
-- 
2.38.1