mirror of
https://github.com/mpv-player/mpv
synced 2025-04-10 11:41:37 +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
586c9e7155
commit
4be7bdcc0f
@ -88,7 +88,7 @@ void mp_chmap_sel_add_map(struct mp_chmap_sel *s, const struct mp_chmap *map)
|
|||||||
return;
|
return;
|
||||||
if (!s->chmaps)
|
if (!s->chmaps)
|
||||||
s->chmaps = s->chmaps_storage;
|
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)
|
if (!s->tmp)
|
||||||
return;
|
return;
|
||||||
s->chmaps = talloc_memdup(s->tmp, s->chmaps, sizeof(s->chmaps_storage));
|
s->chmaps = talloc_memdup(s->tmp, s->chmaps, sizeof(s->chmaps_storage));
|
||||||
|
Loading…
Reference in New Issue
Block a user