summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-09-03 22:40:20 +0200
committerwm4 <wm4@nowhere>2020-09-03 22:40:20 +0200
commitcf19a0d3ccfac74df1ea676f4099fba1ec384e12 (patch)
treecea664331b1680f8ddad211fd7be19cdeecf30e7
parent1643cb865f4005949aa8a10b5eee7e0320f5ff4a (diff)
downloadmpv-cf19a0d3ccfac74df1ea676f4099fba1ec384e12.tar.bz2
mpv-cf19a0d3ccfac74df1ea676f4099fba1ec384e12.tar.xz
ao_alsa: make partial writes an error message
And I think "partial write" is easier to understand than "short write".
-rw-r--r--audio/out/ao_alsa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/audio/out/ao_alsa.c b/audio/out/ao_alsa.c
index 552982ffb2..24f3355047 100644
--- a/audio/out/ao_alsa.c
+++ b/audio/out/ao_alsa.c
@@ -1086,8 +1086,8 @@ static bool audio_write(struct ao *ao, void **data, int samples)
CHECK_ALSA_ERROR("pcm write error");
if (err >= 0 && err != samples) {
- MP_WARN(ao, "unexpected short write (%d of %d frames), dropping audio\n",
- (int)err, samples);
+ MP_ERR(ao, "unexpected partial write (%d of %d frames), dropping audio\n",
+ (int)err, samples);
}
return true;