summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
Diffstat (limited to 'audio')
-rw-r--r--audio/out/ao_alsa.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/audio/out/ao_alsa.c b/audio/out/ao_alsa.c
index 49bdd32835..552982ffb2 100644
--- a/audio/out/ao_alsa.c
+++ b/audio/out/ao_alsa.c
@@ -1085,8 +1085,10 @@ static bool audio_write(struct ao *ao, void **data, int samples)
}
CHECK_ALSA_ERROR("pcm write error");
- if (err != samples)
- MP_WARN(ao, "unexpected short write\n");
+ if (err >= 0 && err != samples) {
+ MP_WARN(ao, "unexpected short write (%d of %d frames), dropping audio\n",
+ (int)err, samples);
+ }
return true;