diff options
author | Thomas Weißschuh <thomas@t-8ch.de> | 2022-12-12 18:49:04 +0000 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2022-12-12 21:36:04 +0100 |
commit | f9d0b0c08a35e67976a8c71ac16a832781c2313a (patch) | |
tree | 6ff33102283e606d061c64efb92f94f031637fe3 /audio/out | |
parent | f2ba5fdfd3f25ca3443da55d5cfb836ee5035aa9 (diff) | |
download | mpv-f9d0b0c08a35e67976a8c71ac16a832781c2313a.tar.bz2 mpv-f9d0b0c08a35e67976a8c71ac16a832781c2313a.tar.xz |
ao_pipewire: clean up when hotplug_init fails
Diffstat (limited to 'audio/out')
-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; } |