diff options
Diffstat (limited to 'audio')
-rw-r--r-- | audio/out/ao_alsa.c | 6 |
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) |