mirror of https://github.com/mpv-player/mpv
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