From 8b3805e105f472a0b7bae15ad91c202660003506 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 26 Apr 2024 21:34:52 +1000 Subject: [PATCH] Fixed drm card selection. Version 1.7.1. --- mpv.c | 2 +- player.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mpv.c b/mpv.c index 65eeed7..aeddd81 100644 --- a/mpv.c +++ b/mpv.c @@ -19,7 +19,7 @@ #include "menu_options.h" #include "mpv_service.h" -static const char *VERSION = "1.7.0" +static const char *VERSION = "1.7.1" #ifdef GIT_REV "-GIT" GIT_REV #endif diff --git a/player.c b/player.c index 2c549ad..e4b969a 100644 --- a/player.c +++ b/player.c @@ -479,7 +479,7 @@ void cMpvPlayer::PlayerGetDRM() drmModeConnector *connector; drmModeModeInfo mode; - fd = open("/dev/dri/card0", O_RDWR); + fd = open(drm_dev, O_RDWR); if (fd < 0) return; resources = drmModeGetResources(fd);