mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
pulse: also disconnect when we unlink the context
This commit is contained in:
parent
f51ba55dae
commit
c8f435ec41
1 changed files with 4 additions and 0 deletions
|
|
@ -73,6 +73,10 @@ static void context_unlink(pa_context *c)
|
||||||
pa_stream_set_state(s, c->state == PA_CONTEXT_FAILED ?
|
pa_stream_set_state(s, c->state == PA_CONTEXT_FAILED ?
|
||||||
PA_STREAM_FAILED : PA_STREAM_TERMINATED);
|
PA_STREAM_FAILED : PA_STREAM_TERMINATED);
|
||||||
}
|
}
|
||||||
|
if (c->core) {
|
||||||
|
pw_core_disconnect(c->core);
|
||||||
|
c->core = NULL;
|
||||||
|
}
|
||||||
spa_list_consume(g, &c->globals, link)
|
spa_list_consume(g, &c->globals, link)
|
||||||
global_free(c, g);
|
global_free(c, g);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue