mirror of
https://github.com/mpv-player/mpv
synced 2025-03-19 18:05:21 +00:00
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:
parent
60ed51008d
commit
c01bb44e36
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user