oss: make sure 16-bit formats are before 8-bit formats in probed caps
authorTim-Philipp Müller <tim@centricular.com>
Fri, 13 Jun 2014 08:45:28 +0000 (09:45 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Fri, 13 Jun 2014 08:49:38 +0000 (09:49 +0100)
commitffcb8845510802f70c159bf510797b1a89351241
treef5a9bc97b60d3d13bb81f378fa6b0d8eb3246b8f
parent0fb59dbdba3c581a541e3f45a29df2f2ca57de03
oss: make sure 16-bit formats are before 8-bit formats in probed caps

Probe supported formats in order of desirability rather than in
what order they may happen to be in the formats bitmask. Fixes
accidentally exposure of 8-bit formats in caps before 16-bit formats
(in case where U16 was not supported S8 might be listed before S16).

https://bugzilla.gnome.org/show_bug.cgi?id=706884
sys/oss/gstosshelper.c