Initialize members of the SubLang and SubPos structs.
Advanced option page: Ensure that value is within the range to avoid problems in case settings were corrupted.
Advanced option page: Set topmost for tooltip window.

This is workaround for
https://connect.microsoft.com/VisualStudio/feedback/details/272350

Fixes #4641
Advanced option page: Be more carefull about current selectet item. Just
in case.
MiniDump: Put dump message on top.

This was very annoying that this message box ended up below MPC-HC window
which obviously couldn't be moved after crash.
Update libdivide.
Move after playback commands to options.

- Add an option to close and restore logo.

Fixes #325
Add an advanced option to set minimal duration for remember position
feature and allow to disable it for audio files.

Fixes #353, #3393
Refs #2179
MainFrame: adjust auto-zoom logic for DVB.

We can't determine whether event is triggered after channel change or on
resolution change. Always restore default auto-fit factor.
wth?
Use c++11 random number generators.

In our case it doesn't matter that much, but why not?
CSubPicQueueNoThread: Respect invalidation time.
Do not clear surface cache when max texture size has not been changed.

We were removing valid surfaces from the cache for PGS/DVB subtitles.
Basically surface cache was broken.
SubPic queue: Clear queue only when it's needed.

Time can decrease even within the same video frame and
it make no sense to purge whole queue, if we still can reuse buffered
subpic.