changeset 20974:123cdf4a0f73

Minor mp_property_deinterlace simplification
author reimar
date Fri, 17 Nov 2006 18:18:28 +0000
parents c0bcec5150a3
children de18de0c8718
files mplayer.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Fri Nov 17 18:16:21 2006 +0000
+++ b/mplayer.c	Fri Nov 17 18:18:28 2006 +0000
@@ -1934,16 +1934,16 @@
     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;