From 90a039a5991c20c3a185667348bf7c69dbb4cd19 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 29 Apr 2014 15:18:19 +0200 Subject: command, vo_vdpau: respect vdpau deint sub-option This is a horrible hack to keep compatibility with the vo_vdpau deint sub-option. --- video/out/vo.h | 2 ++ video/out/vo_vdpau.c | 3 +++ 2 files changed, 5 insertions(+) (limited to 'video') diff --git a/video/out/vo.h b/video/out/vo.h index 629e25e0b0..26c90d184a 100644 --- a/video/out/vo.h +++ b/video/out/vo.h @@ -85,6 +85,8 @@ enum mp_voctrl { VOCTRL_SET_COMMAND_LINE, // char** VOCTRL_GET_ICC_PROFILE_PATH, // char** + + VOCTRL_GET_PREF_DEINT, // int* }; // VOCTRL_SET_EQUALIZER diff --git a/video/out/vo_vdpau.c b/video/out/vo_vdpau.c index fbcb1e9917..97b8245401 100644 --- a/video/out/vo_vdpau.c +++ b/video/out/vo_vdpau.c @@ -1278,6 +1278,9 @@ static int control(struct vo *vo, uint32_t request, void *data) args->out_image = get_screenshot(vo); return true; } + case VOCTRL_GET_PREF_DEINT: + *(int *)data = vc->deint; + return true; } int events = 0; -- cgit v1.2.3