From 912f6094031f65b92e50bdddf74fbea876075d31 Mon Sep 17 00:00:00 2001 From: Johan Kiviniemi Date: Fri, 20 Sep 2013 06:58:18 +0300 Subject: ao_pulse: bug fix: goto the correct error handler --- audio/out/ao_pulse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'audio') diff --git a/audio/out/ao_pulse.c b/audio/out/ao_pulse.c index 2a3047488b..a86871142f 100644 --- a/audio/out/ao_pulse.c +++ b/audio/out/ao_pulse.c @@ -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"); -- cgit v1.2.3