summaryrefslogtreecommitdiffstats
path: root/DOCS/client_api_examples
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-01-06 17:34:29 +0100
committerwm4 <wm4@nowhere>2015-01-06 17:34:29 +0100
commitb5529707f5dfb8073a13bb376fe64010186b60cf (patch)
treebcacf577b17519c4b3afa4c72a62f44e55c1fafb /DOCS/client_api_examples
parent941eff85a64f1ac2178fcf5003fc652ee1e76cc2 (diff)
downloadmpv-b5529707f5dfb8073a13bb376fe64010186b60cf.tar.bz2
mpv-b5529707f5dfb8073a13bb376fe64010186b60cf.tar.xz
vo_opengl_cb: implement equalizer controls
This makes vo_opengl_cb respond to controls like "gamma" and "brightness". The commit includes an awkward refactor for vo_opengl to make it easier for vo_opengl_cb. One problem is a logical race condition. The set of supported controls depends on the pixelformat, which in turn is set by reconfig(). But the actual reconfig() call (on the renderer) happens asynchronously on the renderer thread. At the time it happens, the player most likely already tried to set some controls for command line options (see init_vo() in video.c). So setting this command line options will fail most of the time, though it could randomly succeed. This can't be fixed directly, because the player can't wait on the renderer thread, because the renderer thread might already wait on the player.
Diffstat (limited to 'DOCS/client_api_examples')
0 files changed, 0 insertions, 0 deletions