aboutsummaryrefslogtreecommitdiff
path: root/src/pipewire.c
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-08-08 02:03:03 +0200
committerdec05eba <dec05eba@protonmail.com>2024-08-08 02:03:03 +0200
commit36951238befd78b274e1e967789bbe2e23979b8b (patch)
tree57a27603d0419050eb0002d56a733802bc823e0f /src/pipewire.c
parent846241189e2a73dcd11605d3f77d61dce0469e02 (diff)
Fix possible capture lag (especially with desktop portal capture)
Diffstat (limited to 'src/pipewire.c')
-rw-r--r--src/pipewire.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pipewire.c b/src/pipewire.c
index fae83cd..2e73b92 100644
--- a/src/pipewire.c
+++ b/src/pipewire.c
@@ -649,6 +649,7 @@ bool gsr_pipewire_map_texture(gsr_pipewire *self, unsigned int texture_id, unsig
if(self->no_modifiers_fallback) {
setup_dma_buf_attrs(img_attr, spa_video_format_to_drm_format(self->format.info.raw.format), self->format.info.raw.size.width, self->format.info.raw.size.height,
fds, offsets, pitches, modifiers, self->dmabuf_num_planes, false);
+ image = self->egl->eglCreateImage(self->egl->egl_display, 0, EGL_LINUX_DMA_BUF_EXT, NULL, img_attr);
} else {
setup_dma_buf_attrs(img_attr, spa_video_format_to_drm_format(self->format.info.raw.format), self->format.info.raw.size.width, self->format.info.raw.size.height,
fds, offsets, pitches, modifiers, self->dmabuf_num_planes, true);