aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2023-04-16 22:05:09 +0200
committerdec05eba <dec05eba@protonmail.com>2023-04-16 22:05:09 +0200
commitd953d0bb363799211d546035e825d248b9b3c2ed (patch)
treea1c825b9a569fcec993341edbf4fa5e8e95d795d /src
parentc510bc5ae5099640869ae4a9a475339a5593e676 (diff)
Use XDG_RUNTIME_DIR (and flatpak specific dir) and /dev/dri/renderD128 instead of /dev/dri/card0 (fixes capture on some systems)
Diffstat (limited to 'src')
-rw-r--r--src/capture/kms_vaapi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/capture/kms_vaapi.c b/src/capture/kms_vaapi.c
index 7bc2a0b..74e50f1 100644
--- a/src/capture/kms_vaapi.c
+++ b/src/capture/kms_vaapi.c
@@ -122,8 +122,8 @@ static void monitor_callback(const XRROutputInfo *output_info, const XRRCrtcInfo
static int gsr_capture_kms_vaapi_start(gsr_capture *cap, AVCodecContext *video_codec_context) {
gsr_capture_kms_vaapi *cap_kms = cap->priv;
- // TODO: Allow specifying another card, and in other places (TODO: Use /dev/dri/renderD128?)
- if(gsr_kms_client_init(&cap_kms->kms_client, "/dev/dri/card0") != 0) {
+ // TODO: Allow specifying another card, and in other places
+ if(gsr_kms_client_init(&cap_kms->kms_client, "/dev/dri/renderD128") != 0) {
return -1;
}