Merge pull request #2881 from popcornmix/avoid_resample_init

[rbp/omxplayer] do not reopen the resample context for each frame.
Added CFileItem::FillInMimeType() and make GetMimeType() respect const qualifiers.

Before, the MIME type would only be resolved if GetMimeType(true) was called, which is potentially blocking. Now MIME types will be resolved from the file's extension without possibly blocking the thread. See doxy of CFileItem::FillInMimeType() for more info.
Revert "Merge pull request #2809 from jmarshallnz/no_skip_for_you"

This reverts commit c5a85f72b6f685be832d4e3a43328de49baabf03, reversing
changes made to e9aed1d645158647aa2006ac4b2d2d18a3d1ecbf.
Only allow prev-next chapter jumps outside of active playlist
Move player action handling out of GUIDialogVideoOSD and GUIWindowFullScreen into Application
Merge pull request #2855 from Voyager1/skip-chapters-withoutplaylist

Re-enable skip previous/next as chapter jumps, when outside of playlist context
[fix][ios] ping ; timeout option not supported
Merge pull request #2887 from t4-ravenbird/ios-ping

[fix][ios] ping ; timeout option not supported
[FreeBSD] ping use -t for timeout like OSX
[mingw] added pkg-config to fix configure finding not all available libs
Revert "ffmpeg: fixup compile error in patch"

This reverts commit fcbc5e9a2a320c0b3bb6d6555143e863f1db3158.
Revert "vaapi: don't unmap non-existing buffer"

This reverts commit c1597430e6d2dfd6b644be0345e0df9e0fe44336.
Revert "ffmpeg: add patch file for vaapi fix"

This reverts commit 4f47cfc9726c46ee69c72bdc4a28c15f1caea342.
[ffmpeg] - backport fix for crashing when using vaapi (found on libav mailing list) - this was signed off by elupus
gui: list settings didn't display indentation properly
[rbp] Avoid overflow in version string

gedit complains about invalid characters when opening xbmc.log file produced by pi
Since the change from perforce revision number to git hash, the version string has increased in size.

Fortunately we don't overrun the "response" buffer.
Unfortunately when buffer doesn't fit, it is not null terminated, so logging message pulls in garbage.

Version string looks like:
Jun 17 2013 20:49:11
Copyright (c) 2012 Broadcom
version d380dde43fe729f043befb5cf775f99e54586cde (clean) (release)

So, 80 characters is not enough (it is about 115 plus newlines).
160 seems more than enough, but truncate the string just in case.
Merge pull request #2888 from popcornmix/version_overflow

[rbp] Avoid overflow in version string
[rbp/omxplayer] Make audio_render configurable as the clock master

By default audio_render is the clock master, and if output samples don't fit the timestamps, it will speed up/slow down the clock.
This tends to be better for maintaining audio sync, but does affect video/display sync, and when enabled some receivers can suffer drop outs.
The other option makes audio_render the clock slave, and it has to drop packet or output silence to maintain sync.

It can cause audio dropouts (unfortunately it does for me on my Onkyo 609, although I couldn't reproduce it on any other system).

As both settings have some advantages, and as this mode more accurately defines whether playback is synced to display, or audio,
I've used the GUI setting "sync playback to display" to control this.

The previous use of "sync playback to display" didn't have any benefits, and was never recommened.
[rbp/omxplayer] Move start flags out of clock component

It is harmless to send a start flag on a clock port that is not the master, so keep flags more local
[rbp/omxplayer] Move buffering decision out of OMXPlayerAudio

This gets the m_stalled behaviour closer to dvdplayer which may help live tv issues.
The buffering will be re-added at a higher level from omxplayer