summaryrefslogtreecommitdiffstats
path: root/sub
diff options
context:
space:
mode:
Diffstat (limited to 'sub')
-rw-r--r--sub/osd.c2
-rw-r--r--sub/osd.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/sub/osd.c b/sub/osd.c
index 7ab191191a..75e76ad0fd 100644
--- a/sub/osd.c
+++ b/sub/osd.c
@@ -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);
diff --git a/sub/osd.h b/sub/osd.h
index 704a424c4c..f67b6a5f14 100644
--- a/sub/osd.h
+++ b/sub/osd.h
@@ -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,