audioringbuffer: don't attempt to reorder position-less channels
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 21 Mar 2016 15:29:39 +0000 (16:29 +0100)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Tue, 12 Apr 2016 18:48:30 +0000 (14:48 -0400)
commit7c5dfd713c4d352e6eddbcbabae21d389a8b83e2
treec0025b6ac323b4360dc5fc62e831ac153a035404
parent1c56cfa1440516cfd9ab6abaac5a7d80f4b587ce
audioringbuffer: don't attempt to reorder position-less channels

As said in its doc GST_AUDIO_CHANNEL_POSITION_NONE is meant to be used
for "position-less channels, e.g. from a sound card that records 1024
channels; mutually exclusive with any other channel position".

But at the moment using such positions would raise a
'g_return_if_reached' warning as gst_audio_get_channel_reorder_map()
would reject it.

Fix this by preventing any attempt to reorder in such case as that's not
what we want anyway.

https://bugzilla.gnome.org/show_bug.cgi?id=763799
gst-libs/gst/audio/gstaudioringbuffer.c