[0.11] gst-plugins-base: vorbisdec: use right channel variable

Wim Taymans wtay at kemper.freedesktop.org
Thu Jan 5 03:32:22 PST 2012


Module: gst-plugins-base
Branch: 0.11
Commit: f8ae2a0d5bd4733b714454cd6fbd0b66b245e051
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=f8ae2a0d5bd4733b714454cd6fbd0b66b245e051

Author: Wim Taymans <wim.taymans at collabora.co.uk>
Date:   Thu Jan  5 12:32:06 2012 +0100

vorbisdec: use right channel variable

---

 ext/vorbis/gstvorbisdec.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ext/vorbis/gstvorbisdec.c b/ext/vorbis/gstvorbisdec.c
index 1683f45..cdf7223 100644
--- a/ext/vorbis/gstvorbisdec.c
+++ b/ext/vorbis/gstvorbisdec.c
@@ -229,7 +229,7 @@ vorbis_handle_identification_packet (GstVorbisDec * vd)
   GstCaps *caps;
   GstAudioInfo info;
 
-  switch (info.channels) {
+  switch (vd->vi.channels) {
     case 1:
     case 2:
     case 3:
@@ -241,7 +241,7 @@ vorbis_handle_identification_packet (GstVorbisDec * vd)
     {
       const GstAudioChannelPosition *pos;
 
-      pos = gst_vorbis_default_channel_positions[info.channels - 1];
+      pos = gst_vorbis_default_channel_positions[vd->vi.channels - 1];
       gst_audio_info_set_format (&info, GST_VORBIS_AUDIO_FORMAT, vd->vi.rate,
           vd->vi.channels, pos);
       break;



More information about the gstreamer-commits mailing list