mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-29 21:21:12 +00:00
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:
parent
f35a507b19
commit
2eee3f4ca4
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue