Showing the changes to test (1 of 5 files). Show all
Unified · Split
| @@ -333,7 +333,7 @@ static void check_float_repack(int imgfmt, enum mp_csp csp, · 332 unmodified lines | ||
| 333 | 333 | talloc_free(from_f); |
| 334 | 334 | } |
| 335 | 335 | |
| 336 | −static bool try_draw_bmp(FILE *f, int imgfmt) | |
| 336 | +static bool try_draw_bmp(struct mpv_global *g, FILE *f, int imgfmt) | |
| 337 | 337 | { |
| 338 | 338 | bool ok = false; |
| 339 | 339 | |
| @@ -365,7 +365,7 @@ static bool try_draw_bmp(FILE *f, int imgfmt) · 25 unmodified lines | ||
| 365 | 365 | .num_items = 1, |
| 366 | 366 | }; |
| 367 | 367 | |
| 368 | − struct mp_draw_sub_cache *c = mp_draw_sub_alloc(NULL); | |
| 368 | + struct mp_draw_sub_cache *c = mp_draw_sub_alloc(NULL, g); | |
| 369 | 369 | if (mp_draw_sub_bitmaps(c, dst, &sbs_list)) { |
| 370 | 370 | char *info = mp_draw_sub_get_dbg_info(c); |
| 371 | 371 | fprintf(f, "%s\n", info); |
| @@ -419,7 +419,7 @@ static void run(struct test_ctx *ctx) · 47 unmodified lines | ||
| 419 | 419 | int imgfmt = imgfmts[n]; |
| 420 | 420 | |
| 421 | 421 | fprintf(f, "%-12s= ", mp_imgfmt_to_name(imgfmt)); |
| 422 | − try_draw_bmp(f, imgfmt); | |
| 422 | + try_draw_bmp(ctx->global, f, imgfmt); | |
| 423 | 423 | } |
| 424 | 424 | |
| 425 | 425 | fclose(f); |