mirror of
https://github.com/mpv-player/mpv
synced 2025-01-16 03:51:48 +00:00
ao_pipewire: init_boilerplate(): simplify errorhandling
This commit is contained in:
parent
4bc6686b6a
commit
e4505ce744
@ -388,7 +388,6 @@ static int pipewire_init_boilerplate(struct ao *ao)
|
|||||||
{
|
{
|
||||||
struct priv *p = ao->priv;
|
struct priv *p = ao->priv;
|
||||||
struct pw_context *context;
|
struct pw_context *context;
|
||||||
int ret;
|
|
||||||
|
|
||||||
pw_init(NULL, NULL);
|
pw_init(NULL, NULL);
|
||||||
|
|
||||||
@ -416,15 +415,12 @@ static int pipewire_init_boilerplate(struct ao *ao)
|
|||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = 0;
|
|
||||||
|
|
||||||
out:
|
|
||||||
pw_thread_loop_unlock(p->loop);
|
pw_thread_loop_unlock(p->loop);
|
||||||
return ret;
|
return 0;
|
||||||
|
|
||||||
error:
|
error:
|
||||||
ret = -1;
|
pw_thread_loop_unlock(p->loop);
|
||||||
goto out;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user