mirror of https://github.com/mpv-player/mpv
There's no real reason why audio_init_filter() should exist. Just use af_init or af_reinit directly. (We lose a useless message; the same information is printed in a quite close place with more details.) Requires less code, and the way the filter chain is marked as having failed to initialize allows just switching off audio instead of crashing if trying to insert a volume filter in mixer.c fails, and recreating the old filter chain fails too. |
||
---|---|---|
.. | ||
ad.h | ||
ad_lavc.c | ||
ad_mpg123.c | ||
ad_spdif.c | ||
dec_audio.c | ||
dec_audio.h |