summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-05-27 21:11:46 +0200
committerwm4 <wm4@nowhere>2020-05-27 21:11:46 +0200
commita4b7fcc183aa18eb35b4b6d25609fd6635f5c8fc (patch)
treea94b89b83124d6da9dc78fb3bca3db8c75163974
parent9885952c2a0698e88ec34a2cb9fcef7a6fd69fbb (diff)
downloadmpv-a4b7fcc183aa18eb35b4b6d25609fd6635f5c8fc.tar.bz2
mpv-a4b7fcc183aa18eb35b4b6d25609fd6635f5c8fc.tar.xz
audio: stop applying volume twice for some AOs
Regression since the recent refactor. How did nobody notice? This happened because the push code now calls the function for the pull code. Both the former and latter apply the volume, so oops.
-rw-r--r--audio/out/buffer.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/audio/out/buffer.c b/audio/out/buffer.c
index 0096d2f1f4..720cfaa58e 100644
--- a/audio/out/buffer.c
+++ b/audio/out/buffer.c
@@ -550,7 +550,6 @@ static void ao_play_data(struct ao *ao)
samples = samples / ao->period_size * ao->period_size;
}
MP_STATS(ao, "start ao fill");
- ao_post_process_data(ao, planes, samples);
int r = 0;
if (samples)
r = ao->driver->play(ao, planes, samples, flags);