changeset 28176:7a87b07db9c6

Fix OSD flickering with filters that add frames (tfields, yadif) and -correct-pts
author reimar
date Tue, 30 Dec 2008 10:40:26 +0000
parents 60402016152c
children 8eaa8e269bd6
files libmpcodecs/vf.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf.c	Tue Dec 30 10:38:39 2008 +0000
+++ b/libmpcodecs/vf.c	Tue Dec 30 10:40:26 2008 +0000
@@ -578,6 +578,12 @@
 	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;
     }