mirror of
https://github.com/mpv-player/mpv
synced 2025-03-22 11:18:32 +00:00
vf: Remove unused VFCTRL_FLIP_PAGE
Nothing uses it under MPlayer any more, and under MEncoder it never had any effect.
This commit is contained in:
parent
f43c06930f
commit
fa7983b236
libmpcodecs
@ -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 */
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user