ao_pipewire: don't try to lock nonexistent loop

This commit is contained in:
Thomas Weißschuh 2022-09-28 10:04:49 +02:00 committed by Philip Langdale
parent 5e49c09f2e
commit b2aaf7250f
1 changed files with 3 additions and 2 deletions

View File

@ -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;