diff options
author | Wim Taymans <wtaymans@redhat.com> | 2022-07-01 16:56:36 +0200 |
---|---|---|
committer | Philip Langdale <github.philipl@overt.org> | 2022-07-08 07:45:09 -0700 |
commit | c01bb44e3619a8a8123b5d2fb04b20f206019f8b (patch) | |
tree | 95fff867def7e62894a02af0ff813577cb9cff02 /audio/out | |
parent | 60ed51008d46ddda3310673a6e42023a4abef958 (diff) | |
download | mpv-c01bb44e3619a8a8123b5d2fb04b20f206019f8b.tar.bz2 mpv-c01bb44e3619a8a8123b5d2fb04b20f206019f8b.tar.xz |
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.
Diffstat (limited to 'audio/out')
-rw-r--r-- | audio/out/ao_pipewire.c | 1 |
1 files changed, 0 insertions, 1 deletions
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; |