diff options
author | dec05eba <dec05eba@protonmail.com> | 2025-03-13 22:34:29 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2025-03-13 22:34:29 +0100 |
commit | b0de8588f2f4a5204e9bc22218eed884fa741153 (patch) | |
tree | 6089c4688e9e65ce1f0d1ac3ee9709a020e0d942 /src/capture/portal.c | |
parent | f63409bdd758b80f3a4e414fd5cb5526e384c93a (diff) |
Take screenshot with XGetImage on x11 to workaround nvidia driver (nvfbc) limitation that only allows one nvfbc session at a time
Diffstat (limited to 'src/capture/portal.c')
-rw-r--r-- | src/capture/portal.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/capture/portal.c b/src/capture/portal.c index 893c07a..e065f02 100644 --- a/src/capture/portal.c +++ b/src/capture/portal.c @@ -8,10 +8,9 @@ #include <stdlib.h> #include <stdio.h> #include <unistd.h> +#include <limits.h> #include <assert.h> -#include <libavcodec/avcodec.h> - typedef struct { gsr_capture_portal_params params; |