From b727600d1fc883cd24f2d54e9691bb0d3a895844 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 9 May 2020 17:54:11 +0200 Subject: osd: add subtitle software blending to stats --- sub/osd.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sub/osd.c b/sub/osd.c index 87f9186d21..86bd976803 100644 --- a/sub/osd.c +++ b/sub/osd.c @@ -414,9 +414,13 @@ void osd_draw_on_image_p(struct osd_state *osd, struct mp_osd_res res, // Need to lock for the dumb osd->draw_cache thing. pthread_mutex_lock(&osd->lock); + stats_time_start(osd->stats, "draw-bmp"); + mp_draw_sub_bitmaps(&osd->draw_cache, dest, list); talloc_steal(osd, osd->draw_cache); + stats_time_end(osd->stats, "draw-bmp"); + pthread_mutex_unlock(&osd->lock); talloc_free(list); -- cgit v1.2.3