Deinitialise the clock and free more resources
Restore termio in more exception cases
Check for passthrough being supported before enabling
Improvements to buffering.

After first buffer wait for queues to fill before resuming
Support ffmpeg 1.2 and float planar format

Note: requires recent firmware for float audio support (384946 or later)
Need bigger chunksize for some codecs
Don't query PCM info when in passthough mode, it returns an error
Added --keys / -k to list key bindings.
Add timestamps to log
Remove obsolete non-STANDALONE code
Better support for changing playspeed
Remove discontinuity handling code.

It definitely causes problems by triggering too often. Remove it now and see exactly when and if it is required
Remove more unneeded clock related functions
Remove special cases for mpeg video. I don't think it's needed
Fix seeking for mpeg files
New style buffering.

We use differences between media time and submitted pts values to decide when to buffer.
All buffering (and pausing) is done in one place. We initially start with a low threshold to leav buffering
but increase that whenever we underrun.
Tidy up stats output
Move audio buffering to decoder output which saves ARM memory
Strip out a lot of unnecessary clock functions
Use OMXSpeed for play/pause