gst/audioconvert/gstaudioconvert.c: Fix logic in last commit.

Original commit message from CVS:
* gst/audioconvert/gstaudioconvert.c:
(gst_audio_convert_fixate_channels):
Fix logic in last commit.
This commit is contained in:
Sebastian Dröge 2008-05-20 12:26:32 +00:00
parent d76c4b4c65
commit fcda3964dc
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2008-05-20 Sebastian Dröge <slomo@circular-chaos.org>
* gst/audioconvert/gstaudioconvert.c:
(gst_audio_convert_fixate_channels):
Fix logic in last commit.
2008-05-20 Sebastian Dröge <slomo@circular-chaos.org>
* gst/audioconvert/gstaudioconvert.c:

View file

@ -848,7 +848,7 @@ gst_audio_convert_fixate_channels (GstBaseTransform * base, GstStructure * ins,
in_layout = gst_structure_get_value (ins, "channel-positions");
if (out_layout == NULL) {
if (out_chans <= 2 && in_chans != out_chans && in_layout == NULL)
if (out_chans <= 2 && (in_chans != out_chans || in_layout == NULL))
return; /* nothing to do, default layout will be assumed */
GST_WARNING_OBJECT (base, "downstream caps contain no channel layout");
}