summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-04-29 15:18:19 +0200
committerwm4 <wm4@nowhere>2014-05-02 01:08:05 +0200
commit90a039a5991c20c3a185667348bf7c69dbb4cd19 (patch)
tree47c39ed0218203b0211aa3b86689e9ecd5b1a432 /video
parent3f060a19d84bfef8ea08b81399b16c8414053700 (diff)
downloadmpv-90a039a5991c20c3a185667348bf7c69dbb4cd19.tar.bz2
mpv-90a039a5991c20c3a185667348bf7c69dbb4cd19.tar.xz
command, vo_vdpau: respect vdpau deint sub-option
This is a horrible hack to keep compatibility with the vo_vdpau deint sub-option.
Diffstat (limited to 'video')
-rw-r--r--video/out/vo.h2
-rw-r--r--video/out/vo_vdpau.c3
2 files changed, 5 insertions, 0 deletions
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;