diff options
-rw-r--r-- | audio/out/ao_oss.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/audio/out/ao_oss.c b/audio/out/ao_oss.c index 9ed10cf6c1..b78f244a7b 100644 --- a/audio/out/ao_oss.c +++ b/audio/out/ao_oss.c @@ -579,6 +579,9 @@ static int get_space(struct ao *ao) return zz.fragments * zz.fragsize / ao->sstride; } + if (p->audio_fd < 0 && p->device_failed && get_delay(ao) > 0.2) + return 0; + if (p->audio_fd < 0 || device_writable(ao) > 0) return p->outburst / ao->sstride; |