mirror of
https://github.com/mpv-player/mpv
synced 2025-04-16 20:31:06 +00:00
skip first (green) frame
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22134 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
3f3f9eaae5
commit
339929d765
@ -411,9 +411,13 @@ static int put_image(struct vf_instance_s* vf, mp_image_t *mpi, double pts){
|
|||||||
vf->priv->buffered_i = 0;
|
vf->priv->buffered_i = 0;
|
||||||
vf->priv->buffered_pts = pts;
|
vf->priv->buffered_pts = pts;
|
||||||
|
|
||||||
return vf->priv->do_deinterlace?
|
if(vf->priv->do_deinterlace == 0)
|
||||||
continue_buffered_image(vf):
|
return vf_next_put_image(vf, mpi, pts);
|
||||||
vf_next_put_image(vf, mpi, pts);
|
else if(vf->priv->do_deinterlace == 1){
|
||||||
|
vf->priv->do_deinterlace= 2;
|
||||||
|
return 0;
|
||||||
|
}else
|
||||||
|
continue_buffered_image(vf);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int continue_buffered_image(struct vf_instance_s *vf)
|
static int continue_buffered_image(struct vf_instance_s *vf)
|
||||||
@ -478,7 +482,7 @@ static int control(struct vf_instance_s* vf, int request, void* data){
|
|||||||
*(int*)data = vf->priv->do_deinterlace;
|
*(int*)data = vf->priv->do_deinterlace;
|
||||||
return CONTROL_OK;
|
return CONTROL_OK;
|
||||||
case VFCTRL_SET_DEINTERLACE:
|
case VFCTRL_SET_DEINTERLACE:
|
||||||
vf->priv->do_deinterlace = *(int*)data;
|
vf->priv->do_deinterlace = 2*!!*(int*)data;
|
||||||
return CONTROL_OK;
|
return CONTROL_OK;
|
||||||
}
|
}
|
||||||
return vf_next_control (vf, request, data);
|
return vf_next_control (vf, request, data);
|
||||||
|
Loading…
Reference in New Issue
Block a user