mirror of
https://github.com/mpv-player/mpv
synced 2025-02-07 15:41:55 +00:00
ao_pulse: bug fix: goto the correct error handler
This commit is contained in:
parent
e5710ccc5d
commit
912f609403
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user