From c01bb44e3619a8a8123b5d2fb04b20f206019f8b Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 1 Jul 2022 16:56:36 +0200 Subject: 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. --- audio/out/ao_pipewire.c | 1 - 1 file changed, 1 deletion(-) diff --git a/audio/out/ao_pipewire.c b/audio/out/ao_pipewire.c index 7dda0e1068..7b31f93283 100644 --- a/audio/out/ao_pipewire.c +++ b/audio/out/ao_pipewire.c @@ -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; -- cgit v1.2.3