audioconvert: Consider channel=1, channel-mask=0x0 as mono
authorThibault Saunier <thibault.saunier@osg.samsung.com>
Tue, 25 Jul 2017 16:37:19 +0000 (12:37 -0400)
committerThibault Saunier <thibault.saunier@osg.samsung.com>
Wed, 26 Jul 2017 13:26:39 +0000 (09:26 -0400)
commitffd4c990c1b2498ad448541e695b7be6b0538aec
tree17fbfd5a8dc41134b6fe50f441e4d043b26e0f75
parent01f4d6494a0ba555c9a22ae89d54dadb6c7dca39
audioconvert: Consider channel=1, channel-mask=0x0 as mono

channels=1 is always mono, having it 'unpositioned' does not make
sense.

This fixes pipeline such as:

  gst-validate-1.0 audiotestsrc ! audio/x-raw,channels=2,rate=44100,layout=interleaved ! audioconvert ! audioresample ! audio/x-raw, rate=44100, channels=1 ! avenc_mp2 ! fakesink

https://bugzilla.gnome.org/show_bug.cgi?id=785407
gst/audioconvert/gstaudioconvert.c