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:
parent
f2ba5fdfd3
commit
f9d0b0c08a
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user