pulse: also disconnect when we unlink the context

This commit is contained in:
Wim Taymans 2020-04-02 15:31:20 +02:00
parent f51ba55dae
commit c8f435ec41

View file

@ -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);