audio: don't wait when draining and paused

A corner case that could possibly lead to infinite waiting. Though
I'm not aware that this actually happened in practice.
This commit is contained in:
wm4 2014-06-12 00:30:21 +02:00
parent 231c667214
commit d07cd11b14
1 changed files with 1 additions and 1 deletions

View File

@ -295,7 +295,7 @@ static void *playthread(void *arg)
p->requested_data = true;
}
if (p->drain && p->avoid_ao_wait) {
if (p->drain && (p->avoid_ao_wait || p->paused)) {
if (ao->driver->drain)
ao->driver->drain(ao);
p->drain = false;