audioaggregator: fix channel-mask negotiation
authorMathieu Duponchelle <mathieu@centricular.com>
Mon, 12 Mar 2018 15:23:02 +0000 (16:23 +0100)
committerMathieu Duponchelle <mathieu@centricular.com>
Mon, 12 Mar 2018 16:35:53 +0000 (17:35 +0100)
commite9be107e4a134b5ea6d722332fb3df900b27d481
tree15458d8dc4b1abd420b4cb0a2844f56d925e3464
parent247b22ae1a1e5a0b4e9f1cc820852a1888f2c4eb
audioaggregator: fix channel-mask negotiation

When outputting more than two channels, a channel-mask has to be
specified in the output caps.

We follow the same heuristic as other cases, when downstream
does not specify a channel-mask, we use that of the first
configured pad, and if there was none we generate a fallback
mask.

https://bugzilla.gnome.org/show_bug.cgi?id=794257
gst-libs/gst/audio/gstaudioaggregator.c