diff options
author | wm4 <wm4@mplayer2.org> | 2011-10-24 04:51:24 +0200 |
---|---|---|
committer | Uoti Urpala <uau@mplayer2.org> | 2011-10-24 08:36:17 +0300 |
commit | b200583403219136363b755afab2b05c0937a928 (patch) | |
tree | e828b37713b14ac7a6d24cdc0a1c5abced133415 /libvo/vo_bl.c | |
parent | 2123bff6fa24d43dfc5768ddc0ca855819f0b1b0 (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