1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-30 19:22:11 +00:00

ao_pipewire: clean up when hotplug_init fails

This commit is contained in:
Thomas Weißschuh 2022-12-12 18:49:04 +00:00 committed by sfan5
parent f2ba5fdfd3
commit f9d0b0c08a

View File

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