From 17ea23ac7467a26aa0919deae506c15641c03afb Mon Sep 17 00:00:00 2001 From: reimar Date: Tue, 30 Dec 2008 10:40:26 +0000 Subject: [PATCH] Fix OSD flickering with filters that add frames (tfields, yadif) and -correct-pts git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28211 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/vf.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libmpcodecs/vf.c b/libmpcodecs/vf.c index d04d7f0ecc..cd181156f4 100644 --- a/libmpcodecs/vf.c +++ b/libmpcodecs/vf.c @@ -578,6 +578,12 @@ int vf_output_queued_frame(vf_instance_t *vf) tmp = last->continue_buffered_image; last->continue_buffered_image = NULL; ret = tmp(last); + if (ret > 0) { + vf->control(vf, VFCTRL_DRAW_OSD, NULL); +#ifdef CONFIG_ASS + vf->control(vf, VFCTRL_DRAW_EOSD, NULL); +#endif + } if (ret) return ret; }