summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-05-13 20:07:59 +0200
committerwm4 <wm4@nowhere>2020-05-13 20:07:59 +0200
commitbaabd5fce33d4f85de30477e1aa60b2fc6c02abd (patch)
tree59d64c1d346303df2c236d3063e8ca77ddd09a4a /test
parent6d8b3f9333892e5bc282438995d457f1e05b0498 (diff)
downloadmpv-baabd5fce33d4f85de30477e1aa60b2fc6c02abd.tar.bz2
mpv-baabd5fce33d4f85de30477e1aa60b2fc6c02abd.tar.xz
draw_bmp: use command line options for any used scalers
Diffstat (limited to 'test')
-rw-r--r--test/repack.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/repack.c b/test/repack.c
index 6b492585b7..372bdbc045 100644
--- a/test/repack.c
+++ b/test/repack.c
@@ -333,7 +333,7 @@ static void check_float_repack(int imgfmt, enum mp_csp csp,
talloc_free(from_f);
}
-static bool try_draw_bmp(FILE *f, int imgfmt)
+static bool try_draw_bmp(struct mpv_global *g, FILE *f, int imgfmt)
{
bool ok = false;
@@ -365,7 +365,7 @@ static bool try_draw_bmp(FILE *f, int imgfmt)
.num_items = 1,
};
- struct mp_draw_sub_cache *c = mp_draw_sub_alloc(NULL);
+ struct mp_draw_sub_cache *c = mp_draw_sub_alloc(NULL, g);
if (mp_draw_sub_bitmaps(c, dst, &sbs_list)) {
char *info = mp_draw_sub_get_dbg_info(c);
fprintf(f, "%s\n", info);
@@ -419,7 +419,7 @@ static void run(struct test_ctx *ctx)
int imgfmt = imgfmts[n];
fprintf(f, "%-12s= ", mp_imgfmt_to_name(imgfmt));
- try_draw_bmp(f, imgfmt);
+ try_draw_bmp(ctx->global, f, imgfmt);
}
fclose(f);