Fix memory leak and a failed ASSERT under win32 Debug build. A string was being double-strdup'ed, causing delete[] to fail when deleting the copy from the different heap instead of the local one.

Tracking down the assert to dbgheap.c gives the following message:
> a bad pointer has been passed in. It may be totally bogus, or it may have been allocated from another heap. The pointer MUST come from the 'local' heap.
update wunderground addon
[fix] check active window before delegating player action handling - fixes problem introduced in 8768ec8a7260b7dd46c28e601a398d493808edeb
[cosmetic] suppresses gcc parenthesis warning. Thx @vdrfan
keymap: fix sixaxis gamepad keymapping

Values below starting at 256 are reserved for KEY_BUTTON_*,
use some other unused key id for the GUIDE button. This button
is only virtual since it's mapped from a CEC event
jni: consmetic refactor to consistent appearance
jni: fixed build, these do not exist here
cosmetics: correct typo in DVDPlayerCodec.cpp
Merge pull request #2914 from manio/patch-1

cosmetics: correct typo in DVDPlayerCodec.cpp
[release] version bump to 13.0 alpha6 as we start new merge window.
Merge pull request #2915 from MartijnKaijser/bump

[release] version bump to 13.0 alpha6 as we start new merge window.
[rbp/omxplayer] Avoid resampling in audio_mixer

audio_mixer output defaults to 44.1kHz. Set it to output of audio_decode to avoid a resampling step
This restores the behaviour prior to #2801
Revert "[rbp] Always use the aspect ratio from file."

This reverts commit 7f5d3ede514f30552e42464c29227d570b38ed8a.
[rbp/omxplayer] Use aspect ratio from video decoder

We don't get a valid aspect ratio from tvheadend with mpeg2 files, but the decoder does know, so use that.
This also supports streams where aspect ratio changes (e.g. at commercials) (with firmware from 25 June or newer).
Replace deprecated CodedID and CODEC_ID by their av prefixed counterparts.
Merge pull request #2878 from aballier/codecid

Replace deprecated CodecID and CODEC_ID_* by AVCodecID and AV_CODEC_ID_* everywhere in xbmc code.
[rbp/omxplayer] Check total memory, and if plenty use full size buffers

omxplayer has used a quarter sized video buffer and a half sized audio buffer for the file reading message queue, compared to dvdplayer.
This is required on 256M boards, but is unneccessary on 512M board. So we query the memory size and use full size buffers if possible.
[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 and avoiding audio glitches, but can affect video/display sync.
The other option makes audio_render the clock slave, and it has to drop packet or output silence to maintain sync.

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 recommended.
[rbp/omxplayer] It never makes sense to delay in audio/video players

We are not synchonous with frames submitted so sleeping won't help anything
[rbp/omxplayer] Remove fixPreroll parameter

The preroll only affects when the clock component starts. It doesn't affect the reported timestamps,
so adjusting timestamp by the preroll is incorrect