aboutsummaryrefslogtreecommitdiffhomepage
path: root/libvo/vo_bl.c
diff options
context:
space:
mode:
authorGravatar wm4 <wm4@mplayer2.org>2011-10-24 04:51:24 +0200
committerGravatar Uoti Urpala <uau@mplayer2.org>2011-10-24 08:36:17 +0300
commitb200583403219136363b755afab2b05c0937a928 (patch)
treee828b37713b14ac7a6d24cdc0a1c5abced133415 /libvo/vo_bl.c
parent2123bff6fa24d43dfc5768ddc0ca855819f0b1b0 (diff)
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 'libvo/vo_bl.c')
0 files changed, 0 insertions, 0 deletions