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")
This commit is contained in:
Robert Mader 2024-09-09 21:43:47 +02:00 committed by Wim Taymans
parent 563186eff6
commit 97719948a5

View file

@ -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])))