mozilla-b2g/gaia — pull request #6318 by davidflanagan (2012-11-09 09:21:53+00:00)
Title: Bug 808818 - handle mp3 files without metadata

This pull request fixes bug #808818: it makes the music app recognize and play mp3 files even when they do not contain any metadata.

Along the way, it also fixes some other bugs:

- blobview.js was handling the le (little endian) parameter incorrectly in many methods

- mediadb.js now remembers files that trigger the error callback during metadata parsing, and considers them corrupt files, and never returns them from enumerate() calls.

- the music app displays tracks from unknown artists and unknown albums

- this should also fix #807361: it should make the music app play raw AAC files if and when gecko supports those files. In general, if it doesn't recognize the type of a file, it attempts to load it into an element, and if that succeeds, it assumes that it is a valid music file. So the music app should now support whatever file formats gecko supports.

- it simplifies the handling of thumbnail creation in the metadata parser