From b2aaf7250ff308bf09f06cbe4599870fd7d9d6c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= Date: Wed, 28 Sep 2022 10:04:49 +0200 Subject: [PATCH] ao_pipewire: don't try to lock nonexistent loop --- audio/out/ao_pipewire.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/audio/out/ao_pipewire.c b/audio/out/ao_pipewire.c index 2563ddda30..f755c7bf4d 100644 --- a/audio/out/ao_pipewire.c +++ b/audio/out/ao_pipewire.c @@ -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;