Merge pull request #3014 from bfg1981/master

Avoid overflow warning during compilation.

Note the warning is invalid. But it doesn't hurt to range check the input variable before it is compared to the lengths of the internal buffers.
url: CURL::GetWithoutUserDetails would return non encoded hostname

For rar/zip and similar with an expected url encoded path in their
hostnames, CURL::GetWithoutUserDetails would return an invalidly
formatted non encoded hostname.
apk: tag filesystem as having parent in hostname
uri: use of protocol tags to deduce if parent needs to be checked
Merge pull request #3061 from MartijnKaijser/xbox_legacy_dvd

remove check if running from DVD
added: generate and install cmake helpers for addons
Merge pull request #2981 from cptspiff/cmake-rules

added: generate and install cmake helpers for addons
[osx/ios/atv2] - sync xcode project
Merge pull request #3038 from popcornmix/improve_ffrew

[rbp/omxplayer] Fixes for trickplay
[cosmetics] - get rid of some checks for _WIN32 and replace them with proper TARGET_WINDOWS checks
[rbp/omxplayer] Fix build error in types for max

It seems there is a compile error when STDINT_H_AVAILABLE is not defined.
See: http://raspbmc.apt-get.eu/downloads/bin/xbmc/nightlies/xbmc-rbp-20130710.log
Merge pull request #3067 from popcornmix/fix_compile_max

[rbp/omxplayer] Fix build error in types for max
[rbp/omxplayer] Avoid flushing fifos when audio/video fifos out of sync

This was intended to be a never happens event that could reset the state when something bad happens.
However it does trigger in some reasonable cases (like audio codec change) and makes things worse.
[rbp/omxplayer] Support frame advance with right arrow when paused

It seems this is desired behaviour for xbmc, and works okay on Pi, so enable it.
[rbp/omxplayer] Apply deinterlace changes immediately

Currently on Pi the deinterlace state is only sampled when opening the player.
This means to change deinterlace settings, you need to change in the video OSD then manually quit and restart the video.
This commit detects a change in current deinterlace settings and closes and opens the video player which applies the setting.

For seekable streams, seeking to "now" makes the video restart quicker.
Without the seek, the video does reappear, but takes a number of seconds
[rbp/omxplayer] Fix uninitialised variable that can lose audio packet

The uninitialised variable meant the first run through Decode goes through the non-passthrough path (when passthrough)
and so doesn't get correctly submitted and is discarded
[rbp] Fix type of transform parameter to match latest firmware
Merge pull request #3071 from popcornmix/uninit_audio

[rbp/omxplayer] Fix uninitialised variable that can lose audio packet
avoid attempting mac-discovery for internet addresses
[ffmpeg] - backport - avio: Add an internal function for reading without copying

As long as there is enough contiguous data in the avio buffer,
just return a pointer to it instead of copying it to the caller
provided buffer.

Signed-off-by: Martin Storsjö <martin@martin.st>