mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -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
|
|
@ -413,9 +413,8 @@ static void on_core_error(void *_data, uint32_t id, int seq, int res, const char
|
|||
pw_log_error("remote %p: error id:%u seq:%d res:%d (%s): %s", rd,
|
||||
id, seq, res, spa_strerror(res), message);
|
||||
|
||||
if (id == 0) {
|
||||
if (id == PW_ID_CORE && res == -EPIPE)
|
||||
pw_main_loop_quit(data->loop);
|
||||
}
|
||||
}
|
||||
|
||||
static const struct pw_core_events remote_core_events = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue