changeset 28709:4e89476f8952

Do not forget the chosen deinterlacer for -vo vdpau. Make temporal deinterlacing standard when pressing "D" to activate deinterlacer.
author cehoyos
date Fri, 27 Feb 2009 21:55:28 +0000
parents ebd393e9f567
children 24e75699a8c3
files libvo/vo_vdpau.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_vdpau.c	Fri Feb 27 21:52:59 2009 +0000
+++ b/libvo/vo_vdpau.c	Fri Feb 27 21:55:28 2009 +0000
@@ -148,6 +148,7 @@
 
 static VdpVideoMixer                      video_mixer;
 static int                                deint;
+static int                                deint_type;
 static int                                pullup;
 static float                              denoise;
 static float                              sharpen;
@@ -965,6 +966,7 @@
     static const char *vdpau_device_create = "vdp_device_create_x11";
 
     deint = 0;
+    deint_type = 3;
     pullup = 0;
     denoise = 0;
     sharpen = 0;
@@ -972,6 +974,8 @@
         mp_msg(MSGT_VO, MSGL_FATAL, help_msg);
         return -1;
     }
+    if (deint)
+        deint_type = deint;
 
     vdpau_lib_handle = dlopen(vdpaulibrary, RTLD_LAZY);
     if (!vdpau_lib_handle) {
@@ -1018,6 +1022,8 @@
             return VO_TRUE;
         case VOCTRL_SET_DEINTERLACE:
             deint = *(int*)data;
+            if (deint)
+                deint = deint_type;
             return VO_TRUE;
         case VOCTRL_PAUSE:
             return (int_pause = 1);