mirror of
https://github.com/mpv-player/mpv
synced 2025-02-03 05:31:34 +00:00
ao_pipewire: don't try to lock nonexistent loop
This commit is contained in:
parent
5e49c09f2e
commit
b2aaf7250f
@ -390,9 +390,10 @@ static int pipewire_init_boilerplate(struct ao *ao)
|
||||
|
||||
|
||||
p->loop = pw_thread_loop_new("ao-pipewire", NULL);
|
||||
pw_thread_loop_lock(p->loop);
|
||||
if (p->loop == NULL)
|
||||
goto error;
|
||||
return -1;
|
||||
|
||||
pw_thread_loop_lock(p->loop);
|
||||
|
||||
if (pw_thread_loop_start(p->loop) < 0)
|
||||
goto error;
|
||||
|
Loading…
Reference in New Issue
Block a user