From 97719948a5b064e6e6643445bfd5e95d489c48f4 Mon Sep 17 00:00:00 2001 From: Robert Mader Date: Mon, 9 Sep 2024 21:43:47 +0200 Subject: [PATCH] gst: Stop trying to use DMA_DRM with MOD_INVALID GSTs DMA_DRM API does explicitely not support implicit modifiers and trying to use it would result in assertions like ``` gst_video_dma_drm_fourcc_to_string: assertion 'modifier != DRM_FORMAT_MOD_INVALID' failed ``` Fixes: f1b75fc6f ("gst: Add support for DMA_DRM / explicit modifiers") --- src/gst/gstpipewireformat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gst/gstpipewireformat.c b/src/gst/gstpipewireformat.c index 1e164e08b..1116e8c67 100644 --- a/src/gst/gstpipewireformat.c +++ b/src/gst/gstpipewireformat.c @@ -923,7 +923,7 @@ handle_dmabuf_prop (const struct spa_pod_prop *prop, g_ptr_array_add(fmt_array, g_strdup_printf ("%s", fmt_str)); #ifdef HAVE_GSTREAMER_DMA_DRM - { + if (mods[j] != DRM_FORMAT_MOD_INVALID) { char *drm_str; if ((drm_str = video_id_to_dma_drm_fourcc(id[i], mods[j])))