diff options
-rw-r--r-- | audio/out/ao_coreaudio.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/audio/out/ao_coreaudio.c b/audio/out/ao_coreaudio.c index fda12391ae..47ad69b415 100644 --- a/audio/out/ao_coreaudio.c +++ b/audio/out/ao_coreaudio.c @@ -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; |