summaryrefslogtreecommitdiffstats
path: root/sub/osd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sub/osd.c')
-rw-r--r--sub/osd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sub/osd.c b/sub/osd.c
index 15ad5d20d7..52b69461ff 100644
--- a/sub/osd.c
+++ b/sub/osd.c
@@ -427,7 +427,8 @@ void osd_draw_on_image_p(struct osd_state *osd, struct mp_osd_res res,
stats_time_start(osd->stats, "draw-bmp");
- mp_draw_sub_bitmaps(&osd->draw_cache, dest, list);
+ if (!mp_draw_sub_bitmaps(&osd->draw_cache, dest, list))
+ MP_WARN(osd, "Failed rendering OSD.\n");
talloc_steal(osd, osd->draw_cache);
stats_time_end(osd->stats, "draw-bmp");