From: Sebastian Dröge Date: Tue, 3 May 2022 10:37:31 +0000 (+0300) Subject: audioconvert: If no channel-mask can be fixated then use a NONE channel layout X-Git-Tag: 1.22.0~1691 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2eee3f4ca45181460d22846acc70a8fb23ed0cdc;p=platform%2Fupstream%2Fgstreamer.git 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: --- diff --git a/subprojects/gst-plugins-base/gst/audioconvert/gstaudioconvert.c b/subprojects/gst-plugins-base/gst/audioconvert/gstaudioconvert.c index 48f15bf..24bfe9e 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); } }