mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
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.
This commit is contained in:
parent
28c01f5015
commit
b5a5d64713
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,10 @@
|
|||
2008-05-20 Sebastian Dröge <slomo@circular-chaos.org>
|
||||
|
||||
* 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 <tim.muller at collabora co uk>
|
||||
|
||||
* configure.ac:
|
||||
|
|
|
@ -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]);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue