vorbisdec: use right channel variable
This commit is contained in:
parent
1317811af6
commit
f8ae2a0d5b
@ -229,7 +229,7 @@ vorbis_handle_identification_packet (GstVorbisDec * vd)
|
|||||||
GstCaps *caps;
|
GstCaps *caps;
|
||||||
GstAudioInfo info;
|
GstAudioInfo info;
|
||||||
|
|
||||||
switch (info.channels) {
|
switch (vd->vi.channels) {
|
||||||
case 1:
|
case 1:
|
||||||
case 2:
|
case 2:
|
||||||
case 3:
|
case 3:
|
||||||
@ -241,7 +241,7 @@ vorbis_handle_identification_packet (GstVorbisDec * vd)
|
|||||||
{
|
{
|
||||||
const GstAudioChannelPosition *pos;
|
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,
|
gst_audio_info_set_format (&info, GST_VORBIS_AUDIO_FORMAT, vd->vi.rate,
|
||||||
vd->vi.channels, pos);
|
vd->vi.channels, pos);
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user