mirror of https://github.com/mpv-player/mpv
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,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;
|
||||
|
|
Loading…
Reference in New Issue