summaryrefslogtreecommitdiffstats
path: root/player/osd.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-03-08 21:54:17 +0100
committerwm4 <wm4@nowhere>2016-03-08 22:01:57 +0100
commit876a3bafc5a0cb491ee1f1d5e928cd6e6ef530a8 (patch)
treeaf35260c02da290067e7a5b6bd1d5860cbb1ea7d /player/osd.c
parent75a36662cb6bb0c8a2aeb3a4034d3f8dc745bbdd (diff)
downloadmpv-876a3bafc5a0cb491ee1f1d5e928cd6e6ef530a8.tar.bz2
mpv-876a3bafc5a0cb491ee1f1d5e928cd6e6ef530a8.tar.xz
osd: cleanup: make OSDTYPE_ constants private to OSD code
No need to have them everywhere. The only exception/annoyance is MAX_OSD_PARTS, which is now basically duplicated (and at runtime initialization is checked with an assert()).
Diffstat (limited to 'player/osd.c')
-rw-r--r--player/osd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/osd.c b/player/osd.c
index 2a09911ac7..1baf9fb45e 100644
--- a/player/osd.c
+++ b/player/osd.c
@@ -561,6 +561,6 @@ void update_osd_msg(struct MPContext *mpctx)
text = talloc_asprintf_append(text, "%s%s", text ? "\n" : "",
mpctx->osd_msg_text);
}
- osd_set_text(osd, OSDTYPE_OSD, text);
+ osd_set_text(osd, text);
talloc_free(text);
}