summaryrefslogtreecommitdiffstats
path: root/DOCS/man/options.rst
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-05-08 11:04:44 +0200
committerwm4 <wm4@nowhere>2016-05-08 11:04:44 +0200
commit8fe33a11e2911751b9726146a6f31acfb77b6b03 (patch)
treee6a7afdef7bd8d4dfa8bdad5523dd5b4ddaa0de4 /DOCS/man/options.rst
parent11406b92157fe593d012ed35e1e78e8a26bd0973 (diff)
downloadmpv-8fe33a11e2911751b9726146a6f31acfb77b6b03.tar.bz2
mpv-8fe33a11e2911751b9726146a6f31acfb77b6b03.tar.xz
x11: slightly safer X11 error handler behavior
The X11 error handler is global, and not per-display. If another Xlib user exists in the process, they can conflict. In theory, it might happen that e.g. another library sets an error handler (overwriting the mpv one), and some time after mpv closes its display, restores the error handler to mpv's one. To mitigate this, check if the error log instance is actually set, instead of possibly crashing. The change in vo_x11_uninit() is mostly cosmetic.
Diffstat (limited to 'DOCS/man/options.rst')
0 files changed, 0 insertions, 0 deletions