RealMedia graph: Avoid deleting directly a COM object.

Use a smart COM pointer so that AddRef()/Release() are always used.

Although freeing COM object directly is a bad idea, it couldn't cause any issue in that case.

Fixes CID 1224548.
Sync renderer: Give the renderer a chance to recover on device loss.

The code existed but couldn't be used because the error checking was too strict.

Fixes CID 1224557.
Command line parsing: Avoid a possible (though unlikely) integer overflow.

Fixes CID 1224563.
Subresync bar: Various cosmetics.
Subresync bar: Make the list control virtual for faster loading.

The list control is just a view for the subtitle data so there is no need to duplicate it into the list control.

This makes loading a subtitle into the Subresync bar nearly instant even for complex subtitle files. Such files will now be order of magnitude faster to load.
Subtitle style editor: Various cosmetics.

Reduce the visibility of the member functions and variables, use better name when possible.
ISR: Add a mode that automatically chooses the rendering target for text subtitles.

When using this mode, SSA/ASS subtitles will be rendered on the video frame while other text subtitles will be rendered on the full window.

Fixes #4345.
Add an advanced option to control the number of recent files.

Those files are shown in the "Recent Files" menu. It is also the files for which a position is potentially saved.

Fixes #1407 and #2425.
Advanced option page: Fix double-clicking on non-boolean item.

It prevented the page to be redrawn.
Fix "remember last window position" when "remember last window size" is off.

The size was always restored at start-up when "remember last window position" was enabled after ec0601a05626039f19aa4d51234408c491c18f63.
Fix: Make "remember last window size" behavior when exiting playback consistent with its start-up behavior.

When "remember last window size" was enabled, the window position was always retained which was inconsistent with the start-up behavior. Now the position will be retained only if "remember last window position" is enabled.
Async Reader: Initialize a member variable in the constructor.

Fixes CID 966379.
CBaseDispatch: Remove duplicated sanity check.

Fixes CID 1224558.
BaseClasses/wxutil.cpp: Ensure freed memory can't be reused by mistake.

Fixes CID 1224550.
Remove dead conditional.

CID 1224560.
Fix uninitialized pointer fields.

CID 966482.
Use the proper type for `bool`.
Fix uninitialized scalar fields.

CID 752183 and CID 752184
No need to try rebuilding the capture graph when not in capture mode.

Note that this is cosmetic only thanks to another safety check.
EditListEditor: Various cosmetics.

Reduce the visibility of member variables, mark some functions const and other minor cosmetic changes.