mirror of
https://github.com/mpv-player/mpv
synced 2025-02-16 12:17:12 +00:00
ao_alsa: make partial writes an error message
And I think "partial write" is easier to understand than "short write".
This commit is contained in:
parent
1643cb865f
commit
cf19a0d3cc
@ -1086,7 +1086,7 @@ static bool audio_write(struct ao *ao, void **data, int samples)
|
|||||||
|
|
||||||
CHECK_ALSA_ERROR("pcm write error");
|
CHECK_ALSA_ERROR("pcm write error");
|
||||||
if (err >= 0 && err != samples) {
|
if (err >= 0 && err != samples) {
|
||||||
MP_WARN(ao, "unexpected short write (%d of %d frames), dropping audio\n",
|
MP_ERR(ao, "unexpected partial write (%d of %d frames), dropping audio\n",
|
||||||
(int)err, samples);
|
(int)err, samples);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user