mirror of
https://github.com/mpv-player/mpv
synced 2025-02-17 04:58:06 +00: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
74270cd1db
commit
1679222e18
@ -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