From b5a5d64713260754f9b5776ba24b46779f95e373 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 20 May 2008 08:12:19 +0000 Subject: [PATCH] gst/audioconvert/gstaudioconvert.c: Correctly set the default channel positions when converting to 8 channels. Original commit message from CVS: * gst/audioconvert/gstaudioconvert.c: (gst_audio_convert_fixate_channels): Correctly set the default channel positions when converting to 8 channels. --- ChangeLog | 7 +++++++ gst/audioconvert/gstaudioconvert.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6b9b7c21e..9a591c574 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-05-20 Sebastian Dröge + + * gst/audioconvert/gstaudioconvert.c: + (gst_audio_convert_fixate_channels): + Correctly set the default channel positions when converting to 8 + channels. + 2008-05-19 Tim-Philipp Müller * configure.ac: diff --git a/gst/audioconvert/gstaudioconvert.c b/gst/audioconvert/gstaudioconvert.c index 8a663769d..82f03dcaa 100644 --- a/gst/audioconvert/gstaudioconvert.c +++ b/gst/audioconvert/gstaudioconvert.c @@ -914,7 +914,7 @@ gst_audio_convert_fixate_channels (GstBaseTransform * base, GstStructure * ins, * and try to add/remove channels from the input layout, or pick a default * layout based on LFE-presence in input layout, but let's save that for * another day) */ - if (out_chans > 0 && out_chans < G_N_ELEMENTS (default_positions[0])) { + if (out_chans > 0 && out_chans <= G_N_ELEMENTS (default_positions[0])) { GST_DEBUG_OBJECT (base, "using default channel layout as fallback"); gst_audio_set_channel_positions (outs, default_positions[out_chans - 1]); } -- 2.34.1