summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2018-11-03 06:13:56 +0200
committerJari Vetoniemi <mailroxas@gmail.com>2018-11-03 06:13:56 +0200
commitf10bcee47199f60f1e7b819b6f867d57a14ec03b (patch)
tree0d0f3e99ea3f1f82e1ce0ca8592b028f3a8a109d
parent3ee63c19bd952c0732261166ada8e8b4325c0b43 (diff)
tidy up
-rw-r--r--src/pcm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pcm.c b/src/pcm.c
index 5656448..75bec41 100644
--- a/src/pcm.c
+++ b/src/pcm.c
@@ -647,8 +647,7 @@ snd_pcm_drain(snd_pcm_t *pcm)
if (pcm->started && sio_stop(pcm->hdl)) {
WARNX1("stopped");
pcm->started = false;
- pcm->written = pcm->position = 0;
- pcm->avail = 0;
+ pcm->avail = pcm->written = pcm->position = 0;
}
return (!pcm->started ? 0 : -1);