From 36951238befd78b274e1e967789bbe2e23979b8b Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 8 Aug 2024 02:03:03 +0200 Subject: Fix possible capture lag (especially with desktop portal capture) --- src/capture/kms.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/capture/kms.c') diff --git a/src/capture/kms.c b/src/capture/kms.c index 2ca31d4..ecd221e 100644 --- a/src/capture/kms.c +++ b/src/capture/kms.c @@ -338,6 +338,7 @@ static int gsr_capture_kms_capture(gsr_capture *cap, AVFrame *frame, gsr_color_c if(self->no_modifiers_fallback) { setup_dma_buf_attrs(img_attr, drm_fd->pixel_format, drm_fd->width, drm_fd->height, fds, offsets, pitches, modifiers, drm_fd->num_dma_bufs, false); + image = self->params.egl->eglCreateImage(self->params.egl->egl_display, 0, EGL_LINUX_DMA_BUF_EXT, NULL, img_attr); } else { setup_dma_buf_attrs(img_attr, drm_fd->pixel_format, drm_fd->width, drm_fd->height, fds, offsets, pitches, modifiers, drm_fd->num_dma_bufs, true); while(self->params.egl->eglGetError() != EGL_SUCCESS){} -- cgit v1.2.3