diff options
author | Jari Vetoniemi <mailroxas@gmail.com> | 2018-11-03 06:13:56 +0200 |
---|---|---|
committer | Jari Vetoniemi <mailroxas@gmail.com> | 2018-11-03 06:13:56 +0200 |
commit | f10bcee47199f60f1e7b819b6f867d57a14ec03b (patch) | |
tree | 0d0f3e99ea3f1f82e1ce0ca8592b028f3a8a109d | |
parent | 3ee63c19bd952c0732261166ada8e8b4325c0b43 (diff) |
tidy up
-rw-r--r-- | src/pcm.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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); |