cdiocddasrc: detect whether drive produces samples in non-host endianness
authorTim-Philipp Müller <tim@centricular.net>
Tue, 27 Nov 2012 17:07:31 +0000 (17:07 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Tue, 27 Nov 2012 18:12:43 +0000 (18:12 +0000)
commit1ab41f83b74bb3c1390083e35b2bf1af5e8d7144
tree260daa423ed62efcb3f4613420e27580e364174a
parenta4d74604d47c13f62b1f119cdcf80659f12d3ec6
cdiocddasrc: detect whether drive produces samples in non-host endianness

If drive produces samples in other endianness than the host,
we need to byte swap them before pushing them out, or we
produce nothing but noise. cdparanoia detects this automatically,
but libcdio does not, so we have to do it ourselves.

This is needed on e.g. the PowerBook G4 with Matshita UJ-816 drive.

https://bugzilla.gnome.org/show_bug.cgi?id=377280
ext/cdio/gstcdiocddasrc.c
ext/cdio/gstcdiocddasrc.h