lamemp3enc: implement sinkpad get_caps() function to proxy rate and channels restrict...
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Thu, 3 Feb 2011 18:18:35 +0000 (18:18 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Thu, 3 Feb 2011 18:27:05 +0000 (18:27 +0000)
commit817779ca3598de3e29e43b4ae6d167a419374c99
treed21c0427e28a64327833484c513300dbad09b4e7
parenta640bb99399f6d755d72ec73dc71cbb124b22693
lamemp3enc: implement sinkpad get_caps() function to proxy rate and channels restrictions from downstream

The element downstream of mp3enc might only accept certain sample rates or channels,
make sure we relay any restrictions that do exist to upstream when it does a
get_caps() on the sink pad. That way upstream elements like audioresample or
audioconvert can pick a sample rate / channel configuration that will be accepted,
instead of just negotiating to the highest, which might then be rejected.

https://bugzilla.gnome.org/show_bug.cgi?id=641151
ext/lame/gstlamemp3enc.c