mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
global: use SPA_ID_INVALID to send serial id
We use the done event to send the object serial to the client. Use an invalid object id for this and filter it out on the receiver or else the client might get an unexpected done event. Fixes #2253
This commit is contained in:
parent
e8f93c3e1e
commit
c6a8f8d3ef
2 changed files with 4 additions and 1 deletions
|
|
@ -347,6 +347,9 @@ static int core_event_demarshal_done(void *object, const struct pw_protocol_nati
|
|||
SPA_POD_Int(&seq)) < 0)
|
||||
return -EINVAL;
|
||||
|
||||
if (id == SPA_ID_INVALID)
|
||||
return 0;
|
||||
|
||||
return pw_proxy_notify(proxy, struct pw_core_events, done, 0, id, seq);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue