mirror of
https://github.com/mpv-player/mpv
synced 2025-02-16 12:17:12 +00:00
ao_pulse: bug fix: goto the correct error handler
Conflicts: audio/out/ao_pulse.c
This commit is contained in:
parent
0dd66b8b2c
commit
568ab3672a
@ -299,11 +299,11 @@ static int init(struct ao *ao)
|
|||||||
|
|
||||||
if (!pa_sample_spec_valid(&ss)) {
|
if (!pa_sample_spec_valid(&ss)) {
|
||||||
mp_msg(MSGT_AO, MSGL_ERR, "AO: [pulse] Invalid sample spec\n");
|
mp_msg(MSGT_AO, MSGL_ERR, "AO: [pulse] Invalid sample spec\n");
|
||||||
goto fail;
|
goto unlock_and_fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!select_chmap(ao, &map))
|
if (!select_chmap(ao, &map))
|
||||||
goto fail;
|
goto unlock_and_fail;
|
||||||
|
|
||||||
if (!(proplist = pa_proplist_new())) {
|
if (!(proplist = pa_proplist_new())) {
|
||||||
mp_msg(MSGT_AO, MSGL_ERR, "AO: [pulse] Failed to allocate proplist\n");
|
mp_msg(MSGT_AO, MSGL_ERR, "AO: [pulse] Failed to allocate proplist\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user