mirror of
https://github.com/mpv-player/mpv
synced 2025-01-02 21:12:23 +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);
|
int res = pipewire_init_boilerplate(ao);
|
||||||
if (res)
|
if (res)
|
||||||
return res;
|
goto error_no_unlock;
|
||||||
|
|
||||||
pw_thread_loop_lock(priv->loop);
|
pw_thread_loop_lock(priv->loop);
|
||||||
|
|
||||||
@ -777,6 +777,7 @@ static int hotplug_init(struct ao *ao)
|
|||||||
|
|
||||||
error:
|
error:
|
||||||
pw_thread_loop_unlock(priv->loop);
|
pw_thread_loop_unlock(priv->loop);
|
||||||
|
error_no_unlock:
|
||||||
uninit(ao);
|
uninit(ao);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user