mirror of
https://github.com/mpv-player/mpv
synced 2024-12-31 19:52:16 +00:00
ao_pipewire: Do not hold thread lock during loop stop
Stopping the thread is done using pw_thread_loop_stop(), *which must be called without the lock held.* Fixes #10033
This commit is contained in:
parent
84dc9b1a02
commit
deedc3d418
@ -230,10 +230,8 @@ static const struct pw_stream_events stream_events = {
|
||||
static void uninit(struct ao *ao)
|
||||
{
|
||||
struct priv *p = ao->priv;
|
||||
if (p->loop) {
|
||||
pw_thread_loop_lock(p->loop);
|
||||
if (p->loop)
|
||||
pw_thread_loop_stop(p->loop);
|
||||
}
|
||||
if (p->stream)
|
||||
pw_stream_destroy(p->stream);
|
||||
p->stream = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user