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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2359>
This commit is contained in:
Sebastian Dröge 2022-05-03 13:37:31 +03:00 committed by Tim-Philipp Müller
parent a1bfd113ca
commit 83e3cc950e

View file

@ -683,6 +683,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);
}
}