audioaggregator: Check all downstream allowed caps structures if they support the...
authorSebastian Dröge <sebastian@centricular.com>
Mon, 27 Jul 2020 15:49:48 +0000 (18:49 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 27 Jul 2020 15:49:48 +0000 (18:49 +0300)
commit607dc1d1352b992db6529264dbbbce28a729a352
treedabf85a97f477f9c2b05ecbfc457f42962056cac
parent22827e8f9ea63678a55a02b6dac310af7c84e0f5
audioaggregator: Check all downstream allowed caps structures if they support the upstream rate

Otherwise it might happen that downstream prefers a different rate (i.e.
puts it into the first structure) and also supports other rates, but
audioaggregator would then fail negotiation.

Also this now correctly handles downstream returning a range of
supported rates.

Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/issues/795

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/768>
gst-libs/gst/audio/gstaudioaggregator.c