mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 05:06:17 +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>
|
2008-05-19 Tim-Philipp Müller <tim.muller at collabora co uk>
|
||||||
|
|
||||||
* configure.ac:
|
* 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
|
* 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
|
* layout based on LFE-presence in input layout, but let's save that for
|
||||||
* another day) */
|
* 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_DEBUG_OBJECT (base, "using default channel layout as fallback");
|
||||||
gst_audio_set_channel_positions (outs, default_positions[out_chans - 1]);
|
gst_audio_set_channel_positions (outs, default_positions[out_chans - 1]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue