diff options
Diffstat (limited to 'audio/out')
-rw-r--r-- | audio/out/ao_alsa.c | 2 | ||||
-rw-r--r-- | audio/out/ao_coreaudio.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/audio/out/ao_alsa.c b/audio/out/ao_alsa.c index 86745c6e80..4e54f161fe 100644 --- a/audio/out/ao_alsa.c +++ b/audio/out/ao_alsa.c @@ -279,7 +279,7 @@ static int find_alsa_channel(int mp_channel) static bool query_chmaps(struct ao *ao, struct mp_chmap *chmap) { struct priv *p = ao->priv; - struct mp_chmap_sel chmap_sel = {0}; + struct mp_chmap_sel chmap_sel = {.tmp = p}; snd_pcm_chmap_query_t **maps = snd_pcm_query_chmaps(p->alsa); if (!maps) diff --git a/audio/out/ao_coreaudio.c b/audio/out/ao_coreaudio.c index 1e1ad8cb10..6498f3ecad 100644 --- a/audio/out/ao_coreaudio.c +++ b/audio/out/ao_coreaudio.c @@ -185,7 +185,7 @@ static bool init_chmap(struct ao *ao) &layouts, &n_layouts); CHECK_CA_ERROR("could not get audio device prefered layouts"); - struct mp_chmap_sel chmap_sel = {0}; + struct mp_chmap_sel chmap_sel = {.tmp = p}; for (int i = 0; i < n_layouts; i++) { struct mp_chmap chmap = {0}; if (ca_layout_to_mp_chmap(ao, &layouts[i], &chmap)) |