Commit 60922373 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

ALSA: fix typo leading to a NULL dereference

parent 696e5db0
...@@ -229,7 +229,7 @@ static unsigned SetupChannels (vlc_object_t *obj, snd_pcm_t *pcm, ...@@ -229,7 +229,7 @@ static unsigned SetupChannels (vlc_object_t *obj, snd_pcm_t *pcm,
uint16_t *restrict mask, uint8_t *restrict tab) uint16_t *restrict mask, uint8_t *restrict tab)
{ {
snd_pcm_chmap_query_t **maps = snd_pcm_query_chmaps (pcm); snd_pcm_chmap_query_t **maps = snd_pcm_query_chmaps (pcm);
if (tab == NULL) if (maps == NULL)
{ /* Fallback to manual configuration */ { /* Fallback to manual configuration */
msg_Dbg(obj, "channels map not provided"); msg_Dbg(obj, "channels map not provided");
return SetupChannelsUnknown (obj, mask); return SetupChannelsUnknown (obj, mask);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment