mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
pulse-server: free pending sample reply
If the sample finished playing before we finished the roundtrip to get the sink_index, it will be destroyed. When the roundtrip completes, it will try to use invalid memoryy and crash. Make sure we destroy all pending replies before destroying the sample to avoid this problem. Fixes #2151
This commit is contained in:
parent
bf9ef440c3
commit
d7793501fd
4 changed files with 20 additions and 0 deletions
|
|
@ -43,6 +43,7 @@ int operation_new(struct client *client, uint32_t tag);
|
|||
int operation_new_cb(struct client *client, uint32_t tag,
|
||||
void (*callback) (void *data, struct client *client, uint32_t tag),
|
||||
void *data);
|
||||
struct operation *operation_find(struct client *client, uint32_t tag);
|
||||
void operation_free(struct operation *o);
|
||||
void operation_complete(struct operation *o);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue