vlc | branch: master | Rémi Denis-Courmont <[email protected]> | Wed May 22 
18:50:02 2013 +0300| [6092237353aa1386ae48dfc2052918b1dbc37a3d] | committer: 
Rémi Denis-Courmont

ALSA: fix typo leading to a NULL dereference

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6092237353aa1386ae48dfc2052918b1dbc37a3d
---

 modules/audio_output/alsa.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/audio_output/alsa.c b/modules/audio_output/alsa.c
index fa7d70f..350d509 100644
--- a/modules/audio_output/alsa.c
+++ b/modules/audio_output/alsa.c
@@ -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);

_______________________________________________
vlc-commits mailing list
[email protected]
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to