Pipewire: dont attempt to use modifier if modifier is 0x0

This commit is contained in:
dec05eba
2025-07-20 21:48:39 +02:00
parent bd91c664a6
commit 4fb0dad3df
3 changed files with 4 additions and 5 deletions

View File

@@ -730,7 +730,7 @@ static EGLImage gsr_pipewire_video_create_egl_image_with_fallback(gsr_pipewire_v
if(self->no_modifiers_fallback) {
image = gsr_pipewire_video_create_egl_image(self, fds, offsets, pitches, modifiers, false);
} else {
image = gsr_pipewire_video_create_egl_image(self, fds, offsets, pitches, modifiers, true);
image = gsr_pipewire_video_create_egl_image(self, fds, offsets, pitches, modifiers, self->format.info.raw.modifier != 0);
if(!image) {
if(self->renegotiated) {
fprintf(stderr, "gsr error: gsr_pipewire_video_create_egl_image_with_fallback: failed to create egl image with modifiers, trying without modifiers\n");