mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
osd: add subtitle software blending to stats
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user