audioresample: fix negotiation so that upstream can actually fixate to downstream...
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 1 Apr 2009 14:15:57 +0000 (15:15 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 1 Apr 2009 14:36:38 +0000 (15:36 +0100)
commitd271c8de53ad83219f544e73eacdec296ac583bd
treebd3cc81777431051ea91ec03605d942116bcfca6
parentce51cad163f26eab1e90cb77ae6c6032f8b2c391
audioresample: fix negotiation so that upstream can actually fixate to downstream's rate

If one side has a preference for a particular sample rate or set of sample rates, we
should honour this in the caps we advertise and transform to and from, so that elements
actually know about the other side's sample rate preference and can negotiate to it
if supported. Also add unit test for this.
gst/audioresample/gstaudioresample.c
tests/check/elements/audioresample.c