diff options
author | wm4 <wm4@nowhere> | 2013-07-22 14:42:11 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-07-22 15:06:07 +0200 |
commit | 0c9b0ba40dfd5954c04882d5f3c7d84c1e7681b4 (patch) | |
tree | 2b173dc3e76988b6b44d074ebed9d93e7bcdfdeb /audio/filter/af_bs2b.c | |
parent | f86b94f9b4623baa999961681e44b9a838834de5 (diff) | |
download | mpv-0c9b0ba40dfd5954c04882d5f3c7d84c1e7681b4.tar.bz2 mpv-0c9b0ba40dfd5954c04882d5f3c7d84c1e7681b4.tar.xz |
af: fix recovery code for filter insertion (changing volume with spdif crash)
This code is supposed to run if dynamic filter insertion (such as when
inserting a volume filter in mixer.c) fails. Then it removes all filters
and recreates the default list of filters. But the code just blew up and
entered an endless loop, because it removed even the sentinel in/out
filters. This could happen when trying to use softvol controls while
using spdif, but also other situations. Fix it by calling the correct
code.
Also remove these obnoxious yoda-conditions.
Diffstat (limited to 'audio/filter/af_bs2b.c')
0 files changed, 0 insertions, 0 deletions