mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-07 13:30:09 -05:00
protocol-native: emit a core error on disconnect
Let the listeners on the core_proxy know about connection errors.
This commit is contained in:
parent
7594eabdc8
commit
8bb1ccf587
1 changed files with 3 additions and 0 deletions
|
|
@ -667,6 +667,9 @@ on_remote_data(void *data, int fd, uint32_t mask)
|
||||||
return;
|
return;
|
||||||
error:
|
error:
|
||||||
pw_log_error(NAME" %p: got connection error %d (%s)", impl, res, spa_strerror(res));
|
pw_log_error(NAME" %p: got connection error %d (%s)", impl, res, spa_strerror(res));
|
||||||
|
pw_proxy_notify((struct pw_proxy*)this->core_proxy,
|
||||||
|
struct pw_core_proxy_events, error, 0, 0,
|
||||||
|
this->recv_seq, res, "connection error");
|
||||||
pw_loop_destroy_source(pw_core_get_main_loop(core), impl->source);
|
pw_loop_destroy_source(pw_core_get_main_loop(core), impl->source);
|
||||||
impl->source = NULL;
|
impl->source = NULL;
|
||||||
pw_remote_disconnect(this);
|
pw_remote_disconnect(this);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue