diff options
Diffstat (limited to 'audio/out/ao_alsa.c')
-rw-r--r-- | audio/out/ao_alsa.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/audio/out/ao_alsa.c b/audio/out/ao_alsa.c index 5b07fb2546..ced2ed2325 100644 --- a/audio/out/ao_alsa.c +++ b/audio/out/ao_alsa.c @@ -1124,8 +1124,10 @@ static int audio_wait(struct ao *ao, pthread_mutex_t *lock) err = snd_pcm_poll_descriptors_revents(p->alsa, fds, num_fds, &revents); CHECK_ALSA_ERROR("cannot read poll events"); - if (revents & POLLERR) + if (revents & POLLERR) { + check_device_present(ao, -ENODEV); return -1; + } if (revents & POLLOUT) return 0; } |