diff --git a/ext/vorbis/gstvorbisdec.c b/ext/vorbis/gstvorbisdec.c index cdf7223715..033d2b3508 100644 --- a/ext/vorbis/gstvorbisdec.c +++ b/ext/vorbis/gstvorbisdec.c @@ -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"));