mirror of
https://github.com/mpv-player/mpv
synced 2024-10-30 04:46:41 +01:00
audio: fix one of the previous commits
Fixes commit 52c51149
. It broke multichannel (or possibly everything)
for ao_alsa, ao_oss, ao_sndio.
This commit is contained in:
parent
586c9e7155
commit
4be7bdcc0f
@ -88,7 +88,7 @@ void mp_chmap_sel_add_map(struct mp_chmap_sel *s, const struct mp_chmap *map)
|
||||
return;
|
||||
if (!s->chmaps)
|
||||
s->chmaps = s->chmaps_storage;
|
||||
if (s->num_chmaps == MP_ARRAY_SIZE(s->chmaps)) {
|
||||
if (s->num_chmaps == MP_ARRAY_SIZE(s->chmaps_storage)) {
|
||||
if (!s->tmp)
|
||||
return;
|
||||
s->chmaps = talloc_memdup(s->tmp, s->chmaps, sizeof(s->chmaps_storage));
|
||||
|
Loading…
Reference in New Issue
Block a user