ao_pipewire: don't access core after disconnect

pw_core_disconnect frees the core, so accessing it afterward to
destroy the context is not allowed.

Instead, just destroy the context, the first thing it does is disconnect
all cores for us.
This commit is contained in:
Wim Taymans 2022-07-01 16:56:36 +02:00 committed by Philip Langdale
parent 60ed51008d
commit c01bb44e36
1 changed files with 0 additions and 1 deletions

View File

@ -245,7 +245,6 @@ static void uninit(struct ao *ao)
pw_stream_destroy(p->stream);
p->stream = NULL;
if (p->core) {
pw_core_disconnect(p->core);
pw_context_destroy(pw_core_get_context(p->core));
}
p->core = NULL;