aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2023-04-11 00:48:59 +0200
committerdec05eba <dec05eba@protonmail.com>2023-04-11 00:48:59 +0200
commit2fdc73ffab9bcda97d36d81bda7b9faf94101460 (patch)
tree2f7517e215f72a4848b6b9195554cc451f4e468a /src
parente7020376e9b05bdcea5f4460a286218a41f3a6e7 (diff)
Temporary disable monitor recording on amd/intel
Diffstat (limited to 'src')
-rw-r--r--src/capture/kms_vaapi.c2
-rw-r--r--src/main.cpp6
2 files changed, 7 insertions, 1 deletions
diff --git a/src/capture/kms_vaapi.c b/src/capture/kms_vaapi.c
index ce3a47a..2f7232f 100644
--- a/src/capture/kms_vaapi.c
+++ b/src/capture/kms_vaapi.c
@@ -220,7 +220,7 @@ static int gsr_capture_kms_vaapi_capture(gsr_capture *cap, AVFrame *frame) {
VAStatus va_status = vaCreateConfig(cap_kms->va_dpy, VAProfileNone, VAEntrypointVideoProc, NULL, 0, &cap_kms->config_id);
if(va_status != VA_STATUS_SUCCESS) {
- fprintf(stderr, "gsr error: gsr_capture_kms_vaapi_tick: vaCreateConfig failed: %d\n", va_status);
+ fprintf(stderr, "gsr error: gsr_capture_kms_vaapi_capture: vaCreateConfig failed: %d\n", va_status);
cap_kms->should_stop = true;
cap_kms->stop_is_error = true;
return -1;
diff --git a/src/main.cpp b/src/main.cpp
index c197b19..4fdbad1 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1382,6 +1382,12 @@ int main(int argc, char **argv) {
if(!capture)
return 1;
} else {
+ bool broken = true;
+ if(broken) {
+ fprintf(stderr, "Error: recording a monitor on AMD/Intel has been temporary disabled because of issues. Please record a window instead\n");
+ return 1;
+ }
+
const char *capture_target = window_str;
if(strcmp(window_str, "screen-direct") == 0 || strcmp(window_str, "screen-direct-force") == 0) {
capture_target = "screen";