diff options
author | Uoti Urpala <uau@mplayer2.org> | 2011-12-05 05:24:18 +0200 |
---|---|---|
committer | Uoti Urpala <uau@mplayer2.org> | 2011-12-06 05:03:39 +0200 |
commit | ad0348cf0a7459c0581deaf3ed7d8b73a12cc73f (patch) | |
tree | 206975ec6720a6d3605cc1b9d4c1a603898b3458 /libvo/vo_gl.c | |
parent | c9553ce82fdb80811196f40b9c1eaaa3b2351e01 (diff) | |
download | mpv-ad0348cf0a7459c0581deaf3ed7d8b73a12cc73f.tar.bz2 mpv-ad0348cf0a7459c0581deaf3ed7d8b73a12cc73f.tar.xz |
core, vo: modify OSD redraw architecture, support EOSD
Previously the core sent VFCTRL_REDRAW_OSD to change OSD contents over
the current frame. Change this to VFCTRL_REDRAW_FRAME followed by
normal EOSD and OSD drawing calls, then vo_flip_page(). The new
version supports changing EOSD contents for libass-rendered subtitles
and simplifies the redraw support code needed per VO. vo_xv doesn't
support EOSD changes because it relies on vf_ass to render EOSD
contents earlier in the filter chain.
vo_xv logic is additionally simplified because the previous commit
removed the need to track the status of current and next images
separately (now each frame is guaranteed to become "visible" soon
after we receive it as "next", with no VO code running in the interval
between).
Diffstat (limited to 'libvo/vo_gl.c')
-rw-r--r-- | libvo/vo_gl.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/libvo/vo_gl.c b/libvo/vo_gl.c index b38a8d75e4..ec6e6573e6 100644 --- a/libvo/vo_gl.c +++ b/libvo/vo_gl.c @@ -1506,14 +1506,10 @@ static int control(struct vo *vo, uint32_t request, void *data) break; p->glctx->update_xinerama_info(vo); return VO_TRUE; - case VOCTRL_REDRAW_OSD: + case VOCTRL_REDRAW_FRAME: if (vo_doublebuffering) do_render(vo); - draw_osd(vo, data); - if (vo_doublebuffering) - do_render_osd(vo, 2); - flip_page(vo); - return VO_TRUE; + return true; case VOCTRL_SCREENSHOT: { struct voctrl_screenshot_args *args = data; if (args->full_window) |