diff options
author | Johan Kiviniemi <devel@johan.kiviniemi.name> | 2013-09-20 06:58:18 +0300 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-09-20 13:50:45 +0200 |
commit | 912f6094031f65b92e50bdddf74fbea876075d31 (patch) | |
tree | 17e3f701b2df10d9f7247318c36e137ad2824ec8 /audio/out/ao_pulse.c | |
parent | e5710ccc5d8492d7c114afed43cd0ffbe31dc229 (diff) | |
download | mpv-912f6094031f65b92e50bdddf74fbea876075d31.tar.bz2 mpv-912f6094031f65b92e50bdddf74fbea876075d31.tar.xz |
ao_pulse: bug fix: goto the correct error handler
Diffstat (limited to 'audio/out/ao_pulse.c')
-rw-r--r-- | audio/out/ao_pulse.c | 4 |
1 files changed, 2 insertions, 2 deletions
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"); |