Subtitles: Improve error checking with ASS rendering.

Some crashes could occur when the SSA script was using obviously wrong values.

Is edited to use an amount of samples that will either let one use
an effective maximum texture size of 8000x500 or 4000x1000.

This is more strict than the width >4000 OR height >4000 check
that was first decided on, but will let users create longer/higher
pieces of text that get moved on the screen in order to create an
illusion of scrolling.

Backport of MPC-HC commit 2c597d9
Subtitles: Make both DVD subtitles show in case of overlap

Makes behavior consistent with VLC and mplayer/libavcodec DVD
subtitle implementations. Sets the StopTime of the subtitle
before the same as the StartTime of the currently added DVD
subtitle.

Backport of MPC-HC commit f478e57
VobSubFile: Use TRACE for debug messages

We don't want to spam the users with probably useless error messages.

Thanks to clsid.

Backport of MPC-HC commit 9f504fc
 VSFilter: Fix and update the blacklist.

- Ensure the blacklisting is applied as soon as possible when VSFilter tries to join the graph.
- Fix the incorrect string comparisons, the application name is always lowercase.
- Add some apps that are known to have incompatibility with VSFilter.

This commit is based on a patch by clsid.

Backport of MPC-HC commit 1836020
DirectVobSubFilter: Fix a deadlock, Pt.1

File reloader thread causes a dead lock if

 a. the deconstruction of the filter is going, and its thread
    holds the critical section

..and...

 b. the file reloader thread can not yet finish setup and is
    blocked by the critical section.
BaseVideoFilter: Fix unwanted reconnection with input when output failed

Fixes an unwanted reconnection with input pin when output pin
connection failed to complete.

This often happens when connecting to Video Mixing Renderer.
BaseVideoFilter: Always return a list of output color spaces

Return a list of output color spaces even when we fail to get
upstream's preferred order.
DirectVobSubFilter: Reset the colorspace list when connection breaks

Is this correct to do when we're reconnecting?
BaseVideoFilter: Accept only those output colorspaces that are listed upstream.
BaseVideoFilter: Reject colorspace changes from downstream for now
BaseVideoFilter: Refactor CheckTransform
VobSubFile: Fixed creation of a custom palette with Matroska

Fixes rendering of vobsubs in Matroska when the custom colors
feature was enabled.

Backport of MPC-BE commit 1995