mirror of
https://github.com/mpv-player/mpv
synced 2025-01-04 14:12:10 +00:00
ao_coreaudio: add missing goto for error path
This commit is contained in:
parent
1e5f9d2673
commit
a7e48eca66
@ -431,6 +431,7 @@ bool ca_layout_to_mp_chmap(struct ao *ao, AudioChannelLayout *layout,
|
||||
if (speaker < 0) {
|
||||
MP_VERBOSE(ao, "channel label=%u unusable to build channel "
|
||||
"bitmap, skipping layout\n", (unsigned) label);
|
||||
goto coreaudio_error;
|
||||
} else {
|
||||
chmap->speaker[n] = speaker;
|
||||
chmap->num = n + 1;
|
||||
|
Loading…
Reference in New Issue
Block a user