summaryrefslogtreecommitdiffstats
path: root/libmpcodecs
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2009-01-15 01:11:47 +0200
committerUoti Urpala <uau@glyph.nonexistent.invalid>2009-01-15 04:45:22 +0200
commite0d66b140e1da7a793bff15003cadab79544b1dd (patch)
tree9c9f160529d6e3f33108b66f4e9a07f05ded4b05 /libmpcodecs
parentda01b889d7e2352b46875e5fd6836bc67dd64536 (diff)
downloadmpv-e0d66b140e1da7a793bff15003cadab79544b1dd.tar.bz2
mpv-e0d66b140e1da7a793bff15003cadab79544b1dd.tar.xz
Revert OSD flicker fixes done better in another branch
Revert three commits from svn before merging other svn changes to another branch. That branch has better fixes for these issues and the commits would only cause conflicts. The reverted commits are: "Avoid flickering OSD with -vf yadif=1" commit 5904de25e3b78b78ca6ea81e18d436377d426a43 "Fix OSD flicker with tfields as well." commit 8385fa3dc62b51e3395c6206b0901f2e909b8f57 "Fix OSD flickering with filters that add frames (tfields, yadif) and" commit 17ea23ac7467a26aa0919deae506c15641c03afb
Diffstat (limited to 'libmpcodecs')
-rw-r--r--libmpcodecs/vf.c14
-rw-r--r--libmpcodecs/vf.h1
-rw-r--r--libmpcodecs/vf_tfields.c6
-rw-r--r--libmpcodecs/vf_yadif.c2
4 files changed, 4 insertions, 19 deletions
diff --git a/libmpcodecs/vf.c b/libmpcodecs/vf.c
index cd181156f4..37ada3c59e 100644
--- a/libmpcodecs/vf.c
+++ b/libmpcodecs/vf.c
@@ -578,12 +578,6 @@ 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;
}
@@ -661,14 +655,6 @@ int vf_next_control(struct vf_instance_s* vf, int request, void* data){
return vf->next->control(vf->next,request,data);
}
-void vf_extra_flip(struct vf_instance_s* vf) {
- vf_next_control(vf, VFCTRL_DRAW_OSD, NULL);
-#ifdef CONFIG_ASS
- vf_next_control(vf, VFCTRL_DRAW_EOSD, NULL);
-#endif
- vf_next_control(vf, VFCTRL_FLIP_PAGE, NULL);
-}
-
int vf_next_query_format(struct vf_instance_s* vf, unsigned int fmt){
int flags=vf->next->query_format(vf->next,fmt);
if(flags) flags|=vf->default_caps;
diff --git a/libmpcodecs/vf.h b/libmpcodecs/vf.h
index a2617ff164..27a48eadf2 100644
--- a/libmpcodecs/vf.h
+++ b/libmpcodecs/vf.h
@@ -112,7 +112,6 @@ int vf_next_config(struct vf_instance_s* vf,
int width, int height, int d_width, int d_height,
unsigned int flags, unsigned int outfmt);
int vf_next_control(struct vf_instance_s* vf, int request, void* data);
-void vf_extra_flip(struct vf_instance_s* vf);
int vf_next_query_format(struct vf_instance_s* vf, unsigned int fmt);
int vf_next_put_image(struct vf_instance_s* vf,mp_image_t *mpi, double pts);
void vf_next_draw_slice (struct vf_instance_s* vf, unsigned char** src, int* stride, int w,int h, int x, int y);
diff --git a/libmpcodecs/vf_tfields.c b/libmpcodecs/vf_tfields.c
index df341cea59..e70799a0fa 100644
--- a/libmpcodecs/vf_tfields.c
+++ b/libmpcodecs/vf_tfields.c
@@ -365,7 +365,7 @@ static int continue_buffered_image(struct vf_instance_s *vf)
if (correct_pts)
break;
else
- if (!i) vf_extra_flip(vf);
+ if (!i) vf_next_control(vf, VFCTRL_FLIP_PAGE, NULL);
}
break;
case 1:
@@ -395,7 +395,7 @@ static int continue_buffered_image(struct vf_instance_s *vf)
if (correct_pts)
break;
else
- if (!i) vf_extra_flip(vf);
+ if (!i) vf_next_control(vf, VFCTRL_FLIP_PAGE, NULL);
}
break;
case 2:
@@ -421,7 +421,7 @@ static int continue_buffered_image(struct vf_instance_s *vf)
if (correct_pts)
break;
else
- if (!i) vf_extra_flip(vf);
+ if (!i) vf_next_control(vf, VFCTRL_FLIP_PAGE, NULL);
}
break;
}
diff --git a/libmpcodecs/vf_yadif.c b/libmpcodecs/vf_yadif.c
index a8328d3f2a..971ad988e2 100644
--- a/libmpcodecs/vf_yadif.c
+++ b/libmpcodecs/vf_yadif.c
@@ -440,7 +440,7 @@ static int continue_buffered_image(struct vf_instance_s *vf)
if (correct_pts)
break;
if(i<(vf->priv->mode&1))
- vf_extra_flip(vf);
+ vf_next_control(vf, VFCTRL_FLIP_PAGE, NULL);
}
vf->priv->buffered_i = 1;
return ret;