summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-03-06 10:53:30 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-03-06 10:53:30 +0000
commit175cfc985c24c8599214f716a521fe9c75f54a94 (patch)
treef919cb933de5650c2e9f64755fcb36467a9a0ea2 /libvo
parenteb761e688ff0a7232c279f100a563b1bae1a5646 (diff)
downloadmpv-175cfc985c24c8599214f716a521fe9c75f54a94.tar.bz2
mpv-175cfc985c24c8599214f716a521fe9c75f54a94.tar.xz
Simplify EOSD code by rendering it in VOCTRL_DRAW_EOSD instead of genEOSD,
just like vo_vdpau. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28843 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_gl.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libvo/vo_gl.c b/libvo/vo_gl.c
index 19ae7e9c75..f37d2361fb 100644
--- a/libvo/vo_gl.c
+++ b/libvo/vo_gl.c
@@ -301,7 +301,7 @@ static void genEOSD(mp_eosd_images_t *imgs) {
ass_image_t *i;
if (imgs->changed == 0) // there are elements, but they are unchanged
- goto call_render;
+ return;
if (img && imgs->changed == 1) // there are elements, but they just moved
goto skip_upload;
@@ -386,8 +386,6 @@ skip_upload:
}
glEndList();
BindTexture(gl_target, 0);
-call_render:
- if (vo_doublebuffering) do_render_osd(2);
}
/**
@@ -1118,6 +1116,7 @@ static int control(uint32_t request, void *data, ...)
if (!data)
return VO_FALSE;
genEOSD(data);
+ if (vo_doublebuffering) do_render_osd(2);
return VO_TRUE;
case VOCTRL_GET_EOSD_RES:
{