mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-20 08:56:56 -05:00
handle core error better
Use the PW_ID_CORE constant Quit the mainloop when server disconnected in the tools See #395
This commit is contained in:
parent
387009e0d6
commit
b3aa346063
11 changed files with 13 additions and 20 deletions
|
|
@ -635,7 +635,8 @@ static void on_core_error(void *userdata, uint32_t id, int seq, int res, const c
|
|||
fprintf(stderr, "remote error: id=%"PRIu32" seq:%d res:%d (%s): %s\n",
|
||||
id, seq, res, spa_strerror(res), message);
|
||||
|
||||
pw_main_loop_quit(data->loop);
|
||||
if (id == PW_ID_CORE && res == -EPIPE)
|
||||
pw_main_loop_quit(data->loop);
|
||||
}
|
||||
|
||||
static const struct pw_core_events core_events = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue