aboutsummaryrefslogtreecommitdiff
path: root/src/capture/kms.c
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-10-24 15:11:47 +0200
committerdec05eba <dec05eba@protonmail.com>2024-10-24 15:11:47 +0200
commit86c57c85ac3056d79b31bc6c6709901f88715f2b (patch)
treee32a3024cc1ea3ce05ea1db4036b7712df984c08 /src/capture/kms.c
parent1aae305a3601643c0979b560247b09b3cf8fe347 (diff)
Debug output temp
Diffstat (limited to 'src/capture/kms.c')
-rw-r--r--src/capture/kms.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/capture/kms.c b/src/capture/kms.c
index 8b16ec9..7810f18 100644
--- a/src/capture/kms.c
+++ b/src/capture/kms.c
@@ -549,6 +549,7 @@ static int gsr_capture_kms_capture(gsr_capture *cap, AVFrame *frame, gsr_color_c
bool capture_is_combined_plane = false;
const gsr_kms_response_item *drm_fd = find_monitor_drm(self, &capture_is_combined_plane);
if(!drm_fd) {
+ fprintf(stderr, "monitor drm not found\n");
gsr_capture_kms_cleanup_kms_fds(self);
return -1;
}
@@ -575,6 +576,7 @@ static int gsr_capture_kms_capture(gsr_capture *cap, AVFrame *frame, gsr_color_c
self->params.egl->glFinish();
/* Fast opengl free path */
+ self->fast_path_failed = true;
if(!self->fast_path_failed && self->monitor_rotation == GSR_MONITOR_ROT_0 && video_codec_context_is_vaapi(self->video_codec_context) && self->params.egl->gpu_info.vendor == GSR_GPU_VENDOR_AMD) {
int fds[4];
uint32_t offsets[4];