mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
pulse-server: add operation_free_by_tag()
This commit is contained in:
parent
dd5f0e6bea
commit
0395424461
2 changed files with 8 additions and 3 deletions
|
|
@ -110,14 +110,12 @@ void pending_sample_free(struct pending_sample *ps)
|
|||
{
|
||||
struct client * const client = ps->client;
|
||||
struct impl * const impl = client->impl;
|
||||
struct operation *o;
|
||||
|
||||
spa_list_remove(&ps->link);
|
||||
spa_hook_remove(&ps->listener);
|
||||
pw_work_queue_cancel(impl->work_queue, ps, SPA_ID_INVALID);
|
||||
|
||||
if ((o = operation_find(client, ps->tag)) != NULL)
|
||||
operation_free(o);
|
||||
operation_free_by_tag(client, ps->tag);
|
||||
|
||||
sample_play_destroy(ps->play);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue