vorbisdec: use right channel variable even more
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Fri, 6 Jan 2012 15:15:40 +0000 (16:15 +0100)
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Fri, 6 Jan 2012 15:15:45 +0000 (16:15 +0100)
ext/vorbis/gstvorbisdec.c

index cdf7223..033d2b3 100644 (file)
@@ -248,7 +248,7 @@ vorbis_handle_identification_packet (GstVorbisDec * vd)
     }
     default:{
       GstAudioChannelPosition position[64];
-      gint i, max_pos = MAX (info.channels, 64);
+      gint i, max_pos = MAX (vd->vi.channels, 64);
 
       GST_ELEMENT_WARNING (vd, STREAM, DECODE,
           (NULL), ("Using NONE channel layout for more than 8 channels"));