summaryrefslogtreecommitdiffstats
path: root/audio/out/ao_alsa.c
diff options
context:
space:
mode:
Diffstat (limited to 'audio/out/ao_alsa.c')
-rw-r--r--audio/out/ao_alsa.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/audio/out/ao_alsa.c b/audio/out/ao_alsa.c
index ced2ed2325..f9d8f9a335 100644
--- a/audio/out/ao_alsa.c
+++ b/audio/out/ao_alsa.c
@@ -1125,7 +1125,11 @@ static int audio_wait(struct ao *ao, pthread_mutex_t *lock)
CHECK_ALSA_ERROR("cannot read poll events");
if (revents & POLLERR) {
- check_device_present(ao, -ENODEV);
+ snd_pcm_status_t *status;
+ snd_pcm_status_alloca(&status);
+
+ err = snd_pcm_status(p->alsa, status);
+ check_device_present(ao, err);
return -1;
}
if (revents & POLLOUT)