diff options
author | wm4 <wm4@mplayer2.org> | 2011-09-29 22:20:46 +0200 |
---|---|---|
committer | Uoti Urpala <uau@mplayer2.org> | 2011-10-24 06:14:19 +0300 |
commit | bb8781a00a590412926f240fd0731a25127eb046 (patch) | |
tree | 03d4c7aef466dffdfa6db6426e98820b00dd35c8 /subopt-helper.h | |
parent | 98b89d4aa78dc62317300ac59e8bd4b1d5d80977 (diff) |
vo_gl: add new vo name "gl_sdl" to make SDL+GL mode available
The actual work is done by the existing SDL code. This commit merely
makes it possible to explicitly select the SDL backend ("gl" alone
uses SDL only if the X11 and win32 backends are not available, while
the new "gl_sdl" always forces use of SDL).
Also disable YUV conversion method autodetection when SDL is used.
This gets rid of a temporary window that appears for a moment and is
immediately closed again. SDL can't deal with the VOFLAG_HIDDEN flag,
which is needed to create an invisible GL context (when the
autodetection is run, the video size isn't yet known to the VO, and
creating a window then resizing would cause problems with window
placement). Instead always pick the fragment program method by default
(yuv=2). This change affects the normal "gl" VO too if it chooses the
SDL backend.
Diffstat (limited to 'subopt-helper.h')
0 files changed, 0 insertions, 0 deletions