diff options
author | wm4 <wm4@nowhere> | 2013-05-12 21:34:44 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-05-12 21:45:05 +0200 |
commit | 48f94311516dc1426644b3e68b2a48c22727e1e7 (patch) | |
tree | c353cf29ad252c39d2d2a142739f09142527af92 /Copyright | |
parent | 9dd9ccbd8d79a7dccd93be0a1e26028ca1d89d42 (diff) |
af: improve filter chain setup retry limit
af_reinit() is responsible for inserting automatic conversion filters
for channel remixing, format conversion, and resampling. We don't
require that a single filter can do all these (even though
af_lavrresample does nearly all of this, sometimes af_format has to be
used instead for format conversions). This makes setting up the chain
more complicated, and a way is needed to prevent endless appending of
conversion filters if a conversion is not possible.
Until now, this used a stupidly simple yet robust static retry limit to
detect failure. This is perfectly fine, and the limit (20) was good
enough to handle about ~5 filters. But with more filters, and if each
filter requires 3 additional conversion filters, this would fail. So
raise the limit to 4 retries per filter. This is still stupidly simple
and robust, but won't arbitrarily fail if the filter count is too large.
Diffstat (limited to 'Copyright')
0 files changed, 0 insertions, 0 deletions