summaryrefslogtreecommitdiffstats
path: root/audio/filter/af.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-03-28 22:35:54 +0100
committerwm4 <wm4@nowhere>2013-04-13 04:21:28 +0200
commitbc268b313e3764ff192f9adb28c5735a6241224a (patch)
tree9f1de20bc954ebbb8f72d32277d390be38443b79 /audio/filter/af.c
parent41aefce730efd7da6068b7f61697c65759cd3f84 (diff)
downloadmpv-bc268b313e3764ff192f9adb28c5735a6241224a.tar.bz2
mpv-bc268b313e3764ff192f9adb28c5735a6241224a.tar.xz
audio: remove float processing option
The only thing this option did was changing the behavior of af_volume. The option decided what sample format af_volume would use, but only if the sample format was not already float. If the option was set, it would default to float, otherwise to S16. Remove use of the option and all associated code, and make af_volume always use float (unless a af_volume specific sub-option is set). Silence maximum value tracking. This message is printed when the filter is destroyed, and it's slightly annoying. Was enabled due to enabling float by default.
Diffstat (limited to 'audio/filter/af.c')
-rw-r--r--audio/filter/af.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/audio/filter/af.c b/audio/filter/af.c
index c36c8f6e8f..d6d09158ef 100644
--- a/audio/filter/af.c
+++ b/audio/filter/af.c
@@ -154,9 +154,7 @@ static struct af_instance *af_create(struct af_stream *s,
mp_msg(MSGT_AFILTER, MSGL_V, "[libaf] Adding filter %s \n", name);
// Initialize the new filter
- if (AF_OK == new->info->open(new) &&
- AF_ERROR < new->control(new, AF_CONTROL_POST_CREATE, &s->cfg))
- {
+ if (AF_OK == new->info->open(new)) {
if (cmdline) {
if (AF_ERROR >= new->control(new, AF_CONTROL_COMMAND_LINE, cmdline))
goto err_out;