0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 20:03:10 +02:00

Minor mp_property_deinterlace simplification

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20990 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2006-11-17 18:18:28 +00:00
parent 7b25afd742
commit e9c16c4b55

View File

@ -1934,16 +1934,16 @@ static int mp_property_deinterlace(m_option_t* prop,int action,void* arg) {
switch(action) {
case M_PROPERTY_GET:
if(!arg) return M_PROPERTY_ERROR;
vf->control(sh_video->vfilter, VFCTRL_GET_DEINTERLACE, arg);
vf->control(vf, VFCTRL_GET_DEINTERLACE, arg);
return M_PROPERTY_OK;
case M_PROPERTY_SET:
if(!arg) return M_PROPERTY_ERROR;
M_PROPERTY_CLAMP(prop,*(int*)arg);
vf->control(sh_video->vfilter, VFCTRL_SET_DEINTERLACE, arg);
vf->control(vf, VFCTRL_SET_DEINTERLACE, arg);
return M_PROPERTY_OK;
case M_PROPERTY_STEP_UP:
case M_PROPERTY_STEP_DOWN:
vf->control(sh_video->vfilter, VFCTRL_SET_DEINTERLACE, &toggle);
vf->control(vf, VFCTRL_SET_DEINTERLACE, &toggle);
return M_PROPERTY_OK;
}
return M_PROPERTY_NOT_IMPLEMENTED;