summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcehoyos <cehoyos@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-02-27 21:55:28 +0000
committercehoyos <cehoyos@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-02-27 21:55:28 +0000
commitb739f6921719abc0eef34014d0f49ae85dac20dc (patch)
tree74411d4b1cd955b4d3742007d834ce18a74b141a
parent7c186eed152dcd69dfd68dcd600cae2c10d5dd4b (diff)
downloadmpv-b739f6921719abc0eef34014d0f49ae85dac20dc.tar.bz2
mpv-b739f6921719abc0eef34014d0f49ae85dac20dc.tar.xz
Do not forget the chosen deinterlacer for -vo vdpau.
Make temporal deinterlacing standard when pressing "D" to activate deinterlacer. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28744 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--libvo/vo_vdpau.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libvo/vo_vdpau.c b/libvo/vo_vdpau.c
index eeb3eb2fdb..e81ff8ece0 100644
--- a/libvo/vo_vdpau.c
+++ b/libvo/vo_vdpau.c
@@ -148,6 +148,7 @@ static int output_surface_width, output_surface_h
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 int preinit(const char *arg)
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 @@ static int preinit(const char *arg)
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 @@ static int control(uint32_t request, void *data, ...)
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);