mirror of
https://github.com/mpv-player/mpv
synced 2025-01-19 05:41: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)
|
static void uninit(struct ao *ao)
|
||||||
{
|
{
|
||||||
struct priv *p = ao->priv;
|
struct priv *p = ao->priv;
|
||||||
if (p->loop) {
|
if (p->loop)
|
||||||
pw_thread_loop_lock(p->loop);
|
|
||||||
pw_thread_loop_stop(p->loop);
|
pw_thread_loop_stop(p->loop);
|
||||||
}
|
|
||||||
if (p->stream)
|
if (p->stream)
|
||||||
pw_stream_destroy(p->stream);
|
pw_stream_destroy(p->stream);
|
||||||
p->stream = NULL;
|
p->stream = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user