aboutsummaryrefslogtreecommitdiff
path: root/src/capture
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-12-08 02:52:58 +0100
committerdec05eba <dec05eba@protonmail.com>2024-12-08 02:52:58 +0100
commitd138a1fe73a596e50652ea4880ad7977e6a0922e (patch)
tree31b30e48ef7d47d81657b52e95f2c36126cc026a /src/capture
parentc259a19b9d8ca646824acad60b599b03252bc1c0 (diff)
Add card path to --info, add card path and vendor to --list-capture-options if known to speed up the command
Diffstat (limited to 'src/capture')
-rw-r--r--src/capture/kms.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/capture/kms.c b/src/capture/kms.c
index d692929..27ddec4 100644
--- a/src/capture/kms.c
+++ b/src/capture/kms.c
@@ -196,7 +196,7 @@ static int gsr_capture_kms_start(gsr_capture *cap, AVCodecContext *video_codec_c
self->params.display_to_capture, strlen(self->params.display_to_capture),
0,
};
- for_each_active_monitor_output(self->params.egl, connection_type, monitor_callback, &monitor_callback_userdata);
+ for_each_active_monitor_output(self->params.egl->window, self->params.egl->card_path, connection_type, monitor_callback, &monitor_callback_userdata);
if(!get_monitor_by_name(self->params.egl, connection_type, self->params.display_to_capture, &monitor)) {
fprintf(stderr, "gsr error: gsr_capture_kms_start: failed to find monitor by name \"%s\"\n", self->params.display_to_capture);
@@ -205,7 +205,7 @@ static int gsr_capture_kms_start(gsr_capture *cap, AVCodecContext *video_codec_c
}
monitor.name = self->params.display_to_capture;
- self->monitor_rotation = drm_monitor_get_display_server_rotation(self->params.egl, &monitor);
+ self->monitor_rotation = drm_monitor_get_display_server_rotation(self->params.egl->window, &monitor);
self->capture_pos = monitor.pos;
/* Monitor size is already rotated on x11 when the monitor is rotated, no need to apply it ourselves */