summaryrefslogtreecommitdiffstats
path: root/input
diff options
context:
space:
mode:
authorwm4 <wm4@mplayer2.org>2011-10-24 04:51:24 +0200
committerUoti Urpala <uau@mplayer2.org>2011-10-24 08:36:17 +0300
commitb200583403219136363b755afab2b05c0937a928 (patch)
treee828b37713b14ac7a6d24cdc0a1c5abced133415 /input
parent2123bff6fa24d43dfc5768ddc0ca855819f0b1b0 (diff)
downloadmpv-b200583403219136363b755afab2b05c0937a928.tar.bz2
mpv-b200583403219136363b755afab2b05c0937a928.tar.xz
vo_gl: fix crash with backends lacking control() features
Some functionality provided by the windowing backend (such as x11, win32) is optional. The function pointers in MPGLContext are NULL if the functionality is not implemented. Check them before calling them, instead of crashing. This happened at least on Windows with the "vo_ontop" command.
Diffstat (limited to 'input')
0 files changed, 0 insertions, 0 deletions