aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar wm4 <wm4@nowhere>2017-11-23 15:50:50 +0100
committerGravatar wm4 <wm4@nowhere>2017-11-23 16:43:59 +0100
commitb2a08db71a066817dc8477fb0694fd767b520e65 (patch)
tree7f4203fd892fb2cd0301ac0950d3a7c6a803979f
parentae05d1f62cfae47e92d7d558fee096321b26fc94 (diff)
ao_alsa: don't convert twice on retry
Obscure corner case.
-rw-r--r--audio/out/ao_alsa.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/audio/out/ao_alsa.c b/audio/out/ao_alsa.c
index 050aef4e2c..3be156232a 100644
--- a/audio/out/ao_alsa.c
+++ b/audio/out/ao_alsa.c
@@ -1102,10 +1102,9 @@ static int play(struct ao *ao, void **data, int samples, int flags)
if (samples == 0)
return 0;
+ ao_convert_inplace(&p->convert, data, samples);
do {
- ao_convert_inplace(&p->convert, data, samples);
-
if (af_fmt_is_planar(ao->format)) {
res = snd_pcm_writen(p->alsa, data, samples);
} else {