diff options
Diffstat (limited to 'sub')
-rw-r--r-- | sub/osd.c | 2 | ||||
-rw-r--r-- | sub/osd.h | 1 |
2 files changed, 3 insertions, 0 deletions
@@ -332,6 +332,8 @@ void osd_draw(struct osd_state *osd, struct mp_osd_res res, continue; if ((draw_flags & OSD_DRAW_SUB_ONLY) && !obj->is_sub) continue; + if ((draw_flags & OSD_DRAW_OSD_ONLY) && obj->is_sub) + continue; if (obj->sub_state.dec_sub) sub_lock(obj->sub_state.dec_sub); @@ -180,6 +180,7 @@ void osd_set_nav_highlight(struct osd_state *osd, void *priv); enum mp_osd_draw_flags { OSD_DRAW_SUB_FILTER = (1 << 0), OSD_DRAW_SUB_ONLY = (1 << 1), + OSD_DRAW_OSD_ONLY = (1 << 2), }; void osd_draw(struct osd_state *osd, struct mp_osd_res res, |