changed: Cosmetics
fixed: We should only try to extract/show thumbs/flags for file-like items (fixes #14176)
fixed: The check for determining whether we're done was wrong
fixed: Auto flags didn't work for items without a VideoInfoTag
changed: Improve logic in GetStreamDetails() for items without a (complete) VideoInfoTag
fixed: Setting streamdetails for auto thumbs/flags didn't work for items with incomplete/empty infotags
fixed: Make sure item has a VideoInfoTag before accessing it
added: Doxygen comments to CFileItem:IsAudio/IsVideo/IsPicture
GUIScrollBarControl: fix onright/ondown navigation when master control doesn't have enough items to fill at least 1 page
Ensure GPU does resize when caching thumbnails

On a Pi, imageres and fanartres are set quite low (typically 512 and 720 or lower).
So, when caching the artwork there is a resize step involved.
The OMXImage jpeg decoder has the option to resize "for free".
Unfortunately this currently only limits the resize to current GUI resolution,
so there is often a second resize done by the ARM. This is very slow.
The larger decoded image also requires more RAM.

With fanartres=512, you currently get resize during decode of 1920x1080 to 1280x720 (gui res).
Then before encode there is a resize to 910x512. The two stage resize reduces image quality.

This fix takes a bit more care to include the imageres/fanartres resize during the decode.
I needed to make the 16:9 check a little more lax to also detect a 16:9 image after it's been resized.
I've gone for differs from 16:9 by 1%, rather than the existing exact match of 16:9.
Always acquire lock when using OMXMediaTime

I don't believe the lock=false call should ever be done unless caller already has lock
Name threads on Linux properly

I implemented this as part of the OpenELEC project.

It helps debug issues if we can easily identify the XBMC thread by name. This patch implements just that.

This second incarnation now implements a proper configure check to ensure we are using the capabilities of the library on various platforms (esp. when using glibc < 1.12).
[rbp] Add reporting of fifo fullness for use with hdmi_status_show in debug builds
[rbp] Move m_messenger.Init from constructor to OnStartup

This makes omxplayer constistent with dvdplayer.
It avoids an initial stray message to immediately try and go normal speed when it should be buffering.
[rbp] Expose GetAudioRenderingLatency

This could be useful for detecting underrun conditions
[rbp] Add OMXLateCount to query if packets have arrived late

Could be useful for detecting underrun conditions
[rbp] Use CurrentHostCounter consistently
[rbp] Use correct size when determining fifo has space in it

This can cause player to get a decode error from audio_decode component
closing stream when packet doesn't actually fit.
[rbp] Add more debug logging
[rbp] Cosmetics