]> git.sesse.net Git - vlc/commitdiff
ALSA: fix typo leading to a NULL dereference
authorRémi Denis-Courmont <remi@remlab.net>
Wed, 22 May 2013 15:50:02 +0000 (18:50 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Wed, 22 May 2013 15:50:02 +0000 (18:50 +0300)
modules/audio_output/alsa.c

index fa7d70fa7b4021beb0d849a4f9607c72210da4c0..350d509cf22143d261dc471fe73133d0298bd299 100644 (file)
@@ -229,7 +229,7 @@ static unsigned SetupChannels (vlc_object_t *obj, snd_pcm_t *pcm,
                                 uint16_t *restrict mask, uint8_t *restrict tab)
 {
     snd_pcm_chmap_query_t **maps = snd_pcm_query_chmaps (pcm);
-    if (tab == NULL)
+    if (maps == NULL)
     {   /* Fallback to manual configuration */
         msg_Dbg(obj, "channels map not provided");
         return SetupChannelsUnknown (obj, mask);