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/2350>
This commit is contained in:
Sebastian Dröge 2022-05-03 13:37:31 +03:00
parent f35a507b19
commit 2eee3f4ca4

View file

@ -697,6 +697,8 @@ gst_audio_convert_fixate_channels (GstBaseTransform * base, GstStructure * ins,
} else if (out_chans > 1) { } else if (out_chans > 1) {
GST_ERROR_OBJECT (base, "Have no default layout for %d channels", GST_ERROR_OBJECT (base, "Have no default layout for %d channels",
out_chans); out_chans);
gst_structure_set (outs, "channel-mask", GST_TYPE_BITMASK,
G_GUINT64_CONSTANT (0), NULL);
} }
} }