diff options
author | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2009-10-21 05:32:36 +0300 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2009-10-21 07:35:22 +0300 |
commit | fa7983b236a219da83ed73a461d58605b69575da (patch) | |
tree | c817dc76fb8d257bd39b82795ab238cdd12bbcd7 /libmpcodecs | |
parent | f43c06930f8e5161e8b4ef079dec04eed99d942e (diff) | |
download | mpv-fa7983b236a219da83ed73a461d58605b69575da.tar.bz2 mpv-fa7983b236a219da83ed73a461d58605b69575da.tar.xz |
vf: Remove unused VFCTRL_FLIP_PAGE
Nothing uses it under MPlayer any more, and under MEncoder it never
had any effect.
Diffstat (limited to 'libmpcodecs')
-rw-r--r-- | libmpcodecs/vf.h | 1 | ||||
-rw-r--r-- | libmpcodecs/vf_tfields.c | 6 | ||||
-rw-r--r-- | libmpcodecs/vf_vo.c | 6 | ||||
-rw-r--r-- | libmpcodecs/vf_yadif.c | 2 |
4 files changed, 0 insertions, 15 deletions
diff --git a/libmpcodecs/vf.h b/libmpcodecs/vf.h index 099135c5da..d0e3c1cba4 100644 --- a/libmpcodecs/vf.h +++ b/libmpcodecs/vf.h @@ -81,7 +81,6 @@ typedef struct vf_seteq_s #define VFCTRL_GET_EQUALIZER 8 /* gset color options (brightness,contrast etc) */ #define VFCTRL_DRAW_OSD 7 #define VFCTRL_CHANGE_RECTANGLE 9 /* Change the rectangle boundaries */ -#define VFCTRL_FLIP_PAGE 10 /* Tell the vo to flip pages */ #define VFCTRL_DUPLICATE_FRAME 11 /* For encoding - encode zero-change frame */ #define VFCTRL_SKIP_NEXT_FRAME 12 /* For encoding - drop the next frame that passes thru */ #define VFCTRL_FLUSH_FRAMES 13 /* For encoding - flush delayed frames */ diff --git a/libmpcodecs/vf_tfields.c b/libmpcodecs/vf_tfields.c index 395e55a323..28529d319b 100644 --- a/libmpcodecs/vf_tfields.c +++ b/libmpcodecs/vf_tfields.c @@ -368,8 +368,6 @@ static int continue_buffered_image(struct vf_instance *vf) ret |= vf_next_put_image(vf, dmpi, pts); if (!under_mencoder) break; - else - if (!i) vf_next_control(vf, VFCTRL_FLIP_PAGE, NULL); } break; case 1: @@ -398,8 +396,6 @@ static int continue_buffered_image(struct vf_instance *vf) ret |= vf_next_put_image(vf, dmpi, pts); if (!under_mencoder) break; - else - if (!i) vf_next_control(vf, VFCTRL_FLIP_PAGE, NULL); } break; case 2: @@ -424,8 +420,6 @@ static int continue_buffered_image(struct vf_instance *vf) ret |= vf_next_put_image(vf, dmpi, pts); if (!under_mencoder) break; - else - if (!i) vf_next_control(vf, VFCTRL_FLIP_PAGE, NULL); } break; } diff --git a/libmpcodecs/vf_vo.c b/libmpcodecs/vf_vo.c index c782a5517b..7416e5f1d4 100644 --- a/libmpcodecs/vf_vo.c +++ b/libmpcodecs/vf_vo.c @@ -94,12 +94,6 @@ static int control(struct vf_instance* vf, int request, void* data) return CONTROL_TRUE; case VFCTRL_REDRAW_OSD: return vo_control(video_out, VOCTRL_REDRAW_OSD, data) == true; - case VFCTRL_FLIP_PAGE: - { - if(!video_out->config_ok) return CONTROL_FALSE; // vo not configured? - vo_flip_page(video_out); - return CONTROL_TRUE; - } case VFCTRL_SET_EQUALIZER: { vf_equalizer_t *eq=data; diff --git a/libmpcodecs/vf_yadif.c b/libmpcodecs/vf_yadif.c index 8c73ebacef..477ea03c9b 100644 --- a/libmpcodecs/vf_yadif.c +++ b/libmpcodecs/vf_yadif.c @@ -436,8 +436,6 @@ static int continue_buffered_image(struct vf_instance *vf) ret |= vf_next_put_image(vf, dmpi, pts /*FIXME*/); if (!under_mencoder) break; - if(i<(vf->priv->mode&1)) - vf_next_control(vf, VFCTRL_FLIP_PAGE, NULL); } vf->priv->buffered_i = 1; return ret; |