audioconvert: never do mixing for 1->1 channel conversions
authorTim-Philipp Müller <tim@centricular.com>
Tue, 18 Feb 2014 10:42:04 +0000 (10:42 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 18 Feb 2014 10:48:07 +0000 (10:48 +0000)
commit6c6619a66922bac0c343c4a5623d5bdb322f0e92
tree43037afb4de61d116a4322517ac49b3667ae12a1
parent5496d09eb42fa63d725f0a01ac6c7584126bc5da
audioconvert: never do mixing for 1->1 channel conversions

MONO and NONE position are the same, for example, but in
general there isn't much to do here for such a conversion.

Fixes problem in audioconvert, which would end up using
a mixmatrix when converting between different mono format
because it thinks MONO positioning is different from
unpositioned channels, which is not the case in this
special case. The mixmatrix would end up being 0.0 so
audioconvert would convert to silence samples.

https://bugzilla.gnome.org/show_bug.cgi?id=724509
gst/audioconvert/gstchannelmix.c