ao_pulse: bug fix: goto the correct error handler

Conflicts:
	audio/out/ao_pulse.c
This commit is contained in:
Johan Kiviniemi 2013-09-20 06:58:18 +03:00 committed by wm4
parent 0dd66b8b2c
commit 568ab3672a
1 changed files with 2 additions and 2 deletions

View File

@ -299,11 +299,11 @@ static int init(struct ao *ao)
if (!pa_sample_spec_valid(&ss)) {
mp_msg(MSGT_AO, MSGL_ERR, "AO: [pulse] Invalid sample spec\n");
goto fail;
goto unlock_and_fail;
}
if (!select_chmap(ao, &map))
goto fail;
goto unlock_and_fail;
if (!(proplist = pa_proplist_new())) {
mp_msg(MSGT_AO, MSGL_ERR, "AO: [pulse] Failed to allocate proplist\n");