mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
loop: clarify the pw_main_loop_run returned value
This commit is contained in:
parent
05abc4e41f
commit
ce985def73
3 changed files with 10 additions and 2 deletions
|
|
@ -29,12 +29,14 @@ static void roundtrip(struct pw_core *core, struct pw_main_loop *loop)
|
|||
|
||||
struct roundtrip_data d = { .loop = loop };
|
||||
struct spa_hook core_listener;
|
||||
int err;
|
||||
|
||||
pw_core_add_listener(core, &core_listener, &core_events, &d);
|
||||
|
||||
d.pending = pw_core_sync(core, PW_ID_CORE, 0);
|
||||
|
||||
pw_main_loop_run(loop);
|
||||
if ((err = pw_main_loop_run(loop)) < 0)
|
||||
printf("main_loop_run error:%d!\n", err);
|
||||
|
||||
spa_hook_remove(&core_listener);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue