mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
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:
parent
d76c4b4c65
commit
fcda3964dc
2 changed files with 7 additions and 1 deletions
|
@ -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:
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue