summaryrefslogtreecommitdiffstats
path: root/video/out/vo.c
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.dev>2023-01-21 15:21:49 +0100
committerNiklas Haas <github-daiK1o@haasn.dev>2023-01-23 14:13:34 +0100
commitf8c17f55f975ea3b46ba7cea299f1a8e5d980b4c (patch)
treedf52790475745d55a778f9df11dddf096c452229 /video/out/vo.c
parent8eb7a00fa1f091e1766997f3d972d6c5fe9ac018 (diff)
downloadmpv-f8c17f55f975ea3b46ba7cea299f1a8e5d980b4c.tar.bz2
mpv-f8c17f55f975ea3b46ba7cea299f1a8e5d980b4c.tar.xz
vo: add `int flags` to the get_image signature
This is a huge disgusting mess to thread through everywhere. Maybe I'm stupid for attempting to solve the problem this way.
Diffstat (limited to 'video/out/vo.c')
-rw-r--r--video/out/vo.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/video/out/vo.c b/video/out/vo.c
index c0043ce2a7..031a4e61a2 100644
--- a/video/out/vo.c
+++ b/video/out/vo.c
@@ -1067,10 +1067,10 @@ static void do_redraw(struct vo *vo)
}
static struct mp_image *get_image_vo(void *ctx, int imgfmt, int w, int h,
- int stride_align)
+ int stride_align, int flags)
{
struct vo *vo = ctx;
- return vo->driver->get_image(vo, imgfmt, w, h, stride_align);
+ return vo->driver->get_image(vo, imgfmt, w, h, stride_align, flags);
}
static void *vo_thread(void *ptr)
@@ -1401,12 +1401,12 @@ struct vo_frame *vo_get_current_vo_frame(struct vo *vo)
}
struct mp_image *vo_get_image(struct vo *vo, int imgfmt, int w, int h,
- int stride_align)
+ int stride_align, int flags)
{
if (vo->driver->get_image_ts)
- return vo->driver->get_image_ts(vo, imgfmt, w, h, stride_align);
+ return vo->driver->get_image_ts(vo, imgfmt, w, h, stride_align, flags);
if (vo->in->dr_helper)
- return dr_helper_get_image(vo->in->dr_helper, imgfmt, w, h, stride_align);
+ return dr_helper_get_image(vo->in->dr_helper, imgfmt, w, h, stride_align, flags);
return NULL;
}