diff options
author | Thomas Weißschuh <thomas@t-8ch.de> | 2022-12-12 18:49:04 +0000 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2023-01-24 15:56:56 +0100 |
commit | 7753a73a17826653f8c87898033b9ad739ea0408 (patch) | |
tree | a2becf40ed26b553871fdf08ce173cdea31bc2d9 | |
parent | dadcb2e61408a3589eab8eb7a4d421d7641eb899 (diff) | |
download | mpv-7753a73a17826653f8c87898033b9ad739ea0408.tar.bz2 mpv-7753a73a17826653f8c87898033b9ad739ea0408.tar.xz |
ao_pipewire: clean up when hotplug_init fails
-rw-r--r-- | audio/out/ao_pipewire.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/audio/out/ao_pipewire.c b/audio/out/ao_pipewire.c index 288a815eda..4880e776f0 100644 --- a/audio/out/ao_pipewire.c +++ b/audio/out/ao_pipewire.c @@ -754,7 +754,7 @@ static int hotplug_init(struct ao *ao) int res = pipewire_init_boilerplate(ao); if (res) - return res; + goto error_no_unlock; pw_thread_loop_lock(priv->loop); @@ -777,6 +777,7 @@ static int hotplug_init(struct ao *ao) error: pw_thread_loop_unlock(priv->loop); +error_no_unlock: uninit(ao); return -1; } |