AE: only send resample ratio if it was changed
ActiveAE: better 2 duplicate loc than recursive locking and an addition function call, fix after d66354dccada58c5da5ff5d940cd0942b9264a64
Merge pull request #5417 from FernetMenta/aefixes

AE: optimization and fixes
videoplayer: adapt lateness detection and dropping to buffering
video player: present correct pts to user for a/v sync (after buffering in renderer)
videoplayer: update frametime, it might change due to fps detection
videoplayer: give streams with invalid fps a chance for fps detection
dvdplayer: allow rewinding at end of stream, do a seek after rewind
dvdplayer: observe pts counter overflow
dvdplayer: avoid short screen flicker caused by unnecessary reconfigure of renderer
vdpau: advanced settings for auto deinterlacing
player: fix rewind
OMXPlayer: some caching fixes for pvr
fix incorrect display of fps when dr kicks in
ActiveAE: slightly reduce buffer size
Revert "vdpau: comment some features that will be added later"

This reverts commit e00b4f65864d623ab4d2e9e5c06db138e661f1cf.
ffmpeg demuxer: faster channel change for PVR addons without internal demuxing
(such as MediaPortal, ArgusTV, MythTV, NextPVR)
Credits: FernetMenta, Davilla, Popcornmix, Whaupt
DVDFactoryDemuxer: skip streaminfo for udp tcp and pvr-channels
fast channel switch, make sure extradata is decoded
ffmpeg demuxer: allow a stream change if pat/pmt was not seen on open