mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-12 13:30:15 -05:00
Downgrade snd_pcm_mmap_commit error to warning
This commit is contained in:
parent
6cffc887c3
commit
5ac432e5be
1 changed files with 7 additions and 3 deletions
|
|
@ -3027,11 +3027,15 @@ again:
|
||||||
|
|
||||||
if (state->use_mmap && written > 0) {
|
if (state->use_mmap && written > 0) {
|
||||||
if (SPA_UNLIKELY((commitres = snd_pcm_mmap_commit(hndl, offset, written)) < 0)) {
|
if (SPA_UNLIKELY((commitres = snd_pcm_mmap_commit(hndl, offset, written)) < 0)) {
|
||||||
|
if (commitres == -EPIPE || commitres == -ESTRPIPE) {
|
||||||
|
spa_log_warn(state->log, "%s: snd_pcm_mmap_commit error: %s",
|
||||||
|
state->name, snd_strerror(commitres));
|
||||||
|
} else {
|
||||||
spa_log_error(state->log, "%s: snd_pcm_mmap_commit error: %s",
|
spa_log_error(state->log, "%s: snd_pcm_mmap_commit error: %s",
|
||||||
state->name, snd_strerror(commitres));
|
state->name, snd_strerror(commitres));
|
||||||
if (commitres != -EPIPE && commitres != -ESTRPIPE)
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (commitres > 0 && written != (snd_pcm_uframes_t) commitres) {
|
if (commitres > 0 && written != (snd_pcm_uframes_t) commitres) {
|
||||||
spa_log_warn(state->log, "%s: mmap_commit wrote %ld instead of %ld",
|
spa_log_warn(state->log, "%s: mmap_commit wrote %ld instead of %ld",
|
||||||
state->name, commitres, written);
|
state->name, commitres, written);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue