vo_gl: add new vo name "gl_sdl" to make SDL+GL mode available
commitbb8781a00a590412926f240fd0731a25127eb046
authorwm4 <wm4@mplayer2.org>
Thu, 29 Sep 2011 20:20:46 +0000 (29 22:20 +0200)
committerUoti Urpala <uau@mplayer2.org>
Mon, 24 Oct 2011 03:14:19 +0000 (24 06:14 +0300)
tree03d4c7aef466dffdfa6db6426e98820b00dd35c8
parent98b89d4aa78dc62317300ac59e8bd4b1d5d80977
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.
libvo/video_out.c
libvo/vo_gl.c