summaryrefslogtreecommitdiffstats
path: root/video/filter/vf_screenshot.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-01-23 22:06:12 +0100
committerwm4 <wm4@nowhere>2015-01-23 22:08:20 +0100
commit5e9f7916674c4640707727eac80c659290492bad (patch)
tree5a87d5893508384dcfaa11a35690b94b89d16e86 /video/filter/vf_screenshot.c
parent4a1a0e98d8f7ce8e1ab61ff740699cce9bb43f70 (diff)
downloadmpv-5e9f7916674c4640707727eac80c659290492bad.tar.bz2
mpv-5e9f7916674c4640707727eac80c659290492bad.tar.xz
video: separate screenshot modes
Use different VOCTRLs for "window" and normal screenshot modes. The normal one will probably be removed, and replaced by generic code in vo.c, and this commit is preparation for this. (Doing it the other way around would be slightly simpler, but I haven't decided yet about the second one, and touching every VO is needed anyway in order to remove the unneeded crap. E.g. has_osd has been unused for a long time.)
Diffstat (limited to 'video/filter/vf_screenshot.c')
-rw-r--r--video/filter/vf_screenshot.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/video/filter/vf_screenshot.c b/video/filter/vf_screenshot.c
index d60271acc4..562a1d03f5 100644
--- a/video/filter/vf_screenshot.c
+++ b/video/filter/vf_screenshot.c
@@ -46,8 +46,7 @@ static struct mp_image *filter(struct vf_instance *vf, struct mp_image *mpi)
static int control (vf_instance_t *vf, int request, void *data)
{
if (request == VFCTRL_SCREENSHOT && vf->priv->current) {
- struct voctrl_screenshot_args *args = data;
- args->out_image = mp_image_new_ref(vf->priv->current);
+ *(struct mp_image **)data = mp_image_new_ref(vf->priv->current);
return CONTROL_TRUE;
}
return CONTROL_UNKNOWN;