summaryrefslogtreecommitdiffstats
path: root/sub/osd_libass.c
diff options
context:
space:
mode:
Diffstat (limited to 'sub/osd_libass.c')
-rw-r--r--sub/osd_libass.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sub/osd_libass.c b/sub/osd_libass.c
index 3275cc59e6..573a373a06 100644
--- a/sub/osd_libass.c
+++ b/sub/osd_libass.c
@@ -471,6 +471,9 @@ static void update_object(struct osd_state *osd, struct osd_object *obj)
void osd_object_get_bitmaps(struct osd_state *osd, struct osd_object *obj,
struct sub_bitmaps *out_imgs)
{
+ if (!osd->opts->use_text_osd)
+ return;
+
if (obj->force_redraw)
update_object(osd, obj);