mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
ao_pipewire: clean up when hotplug_init fails
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user