From 2eee3f4ca45181460d22846acc70a8fb23ed0cdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 3 May 2022 13:37:31 +0300 Subject: [PATCH] audioconvert: If no channel-mask can be fixated then use a NONE channel layout Otherwise this is generating caps without a channel-mask, which is invalid for >1 channels and will always fail negotiation. Part-of: --- subprojects/gst-plugins-base/gst/audioconvert/gstaudioconvert.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/subprojects/gst-plugins-base/gst/audioconvert/gstaudioconvert.c b/subprojects/gst-plugins-base/gst/audioconvert/gstaudioconvert.c index 48f15bf5e9..24bfe9ef10 100644 --- a/subprojects/gst-plugins-base/gst/audioconvert/gstaudioconvert.c +++ b/subprojects/gst-plugins-base/gst/audioconvert/gstaudioconvert.c @@ -697,6 +697,8 @@ gst_audio_convert_fixate_channels (GstBaseTransform * base, GstStructure * ins, } else if (out_chans > 1) { GST_ERROR_OBJECT (base, "Have no default layout for %d channels", out_chans); + gst_structure_set (outs, "channel-mask", GST_TYPE_BITMASK, + G_GUINT64_CONSTANT (0), NULL); } }