mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
pw-link: handle link proxy removal
This commit is contained in:
parent
ecffe3cbd6
commit
28df14859a
1 changed files with 7 additions and 0 deletions
|
|
@ -115,6 +115,12 @@ static void link_proxy_destroy(void *data)
|
||||||
link_event(tl, PW_LINK_STATE_ERROR, -EINVAL);
|
link_event(tl, PW_LINK_STATE_ERROR, -EINVAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void link_proxy_removed(void *data)
|
||||||
|
{
|
||||||
|
struct target_link *tl = data;
|
||||||
|
pw_proxy_destroy(tl->proxy);
|
||||||
|
}
|
||||||
|
|
||||||
static void link_proxy_error(void *data, int seq, int res, const char *message)
|
static void link_proxy_error(void *data, int seq, int res, const char *message)
|
||||||
{
|
{
|
||||||
struct target_link *tl = data;
|
struct target_link *tl = data;
|
||||||
|
|
@ -124,6 +130,7 @@ static void link_proxy_error(void *data, int seq, int res, const char *message)
|
||||||
static const struct pw_proxy_events link_proxy_events = {
|
static const struct pw_proxy_events link_proxy_events = {
|
||||||
PW_VERSION_PROXY_EVENTS,
|
PW_VERSION_PROXY_EVENTS,
|
||||||
.destroy = link_proxy_destroy,
|
.destroy = link_proxy_destroy,
|
||||||
|
.removed = link_proxy_removed,
|
||||||
.error = link_proxy_error,
|
.error = link_proxy_error,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue