ao_pulse: bug fix: goto the correct error handler

This commit is contained in:
Johan Kiviniemi 2013-09-20 06:58:18 +03:00 committed by wm4
parent e5710ccc5d
commit 912f609403
1 changed files with 2 additions and 2 deletions

View File

@ -297,11 +297,11 @@ static int init(struct ao *ao)
if (!pa_sample_spec_valid(&ss)) {
MP_ERR(ao, "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_ERR(ao, "Failed to allocate proplist\n");