audio: map channels=1,channel-mask=0 to MONO instead of NONE
authorRafał Mużyło <galtgendo@o2.pl>
Tue, 18 Feb 2014 10:32:46 +0000 (10:32 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 18 Feb 2014 10:41:47 +0000 (10:41 +0000)
commit5496d09eb42fa63d725f0a01ac6c7584126bc5da
treeb5c3188b844a19918868e438c7bf71889b369806
parent465dfe4920f8a49c94bb6dfc27272d41e8b82df2
audio: map channels=1,channel-mask=0 to MONO instead of NONE

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-libs/gst/audio/audio-info.c