mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
handle EINTR and EAGAIN
Just do the call again instead of failing or logging an error. Fixes #358
This commit is contained in:
parent
395a30b5d6
commit
e094640c7b
8 changed files with 33 additions and 12 deletions
|
|
@ -1345,6 +1345,8 @@ int sm_media_session_roundtrip(struct sm_media_session *sess)
|
|||
pw_loop_enter(loop);
|
||||
while (!done) {
|
||||
if ((res = pw_loop_iterate(loop, -1)) < 0) {
|
||||
if (res == -EINTR || res == -EAGAIN)
|
||||
continue;
|
||||
pw_log_warn(NAME" %p: iterate error %d (%s)",
|
||||
loop, res, spa_strerror(res));
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue