summaryrefslogtreecommitdiffstats
path: root/input
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-06-23 14:27:53 +0200
committerwm4 <wm4@nowhere>2017-06-23 14:27:53 +0200
commit6ddd95fd6a66ebc8d52f416b13e18433fa0ec488 (patch)
tree998f70fef4e86018fc0e08c35f5911148c069604 /input
parentee21bd1baa51d9e6c1cb8c0e05f6d13957d7c93e (diff)
downloadmpv-6ddd95fd6a66ebc8d52f416b13e18433fa0ec488.tar.bz2
mpv-6ddd95fd6a66ebc8d52f416b13e18433fa0ec488.tar.xz
player: deprecate "osd" command
It was extended by "seru" in 8d190244. This person could not be reached (or does not reply), and it's in the way of LGPL relicensing. Deprecate it, and mark the (probably) affected parts of the code with HAVE_GPL. To be fair, even though the osd.c parts were refactored from the original code, there's probably no copyright by seru on it. But for now play it save. The mere existence of a 3rd OSD level is certainly not copyrightable, so you still can set osd-level to 3 - just that it does nothing.
Diffstat (limited to 'input')
-rw-r--r--input/cmd_list.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/input/cmd_list.c b/input/cmd_list.c
index c54c2cc6aa..bc82e687fd 100644
--- a/input/cmd_list.c
+++ b/input/cmd_list.c
@@ -98,7 +98,9 @@ const struct mp_cmd_def mp_cmds[] = {
{ MP_CMD_PLAYLIST_SHUFFLE, "playlist-shuffle", },
{ MP_CMD_SUB_STEP, "sub-step", { ARG_INT }, .allow_auto_repeat = true },
{ MP_CMD_SUB_SEEK, "sub-seek", { ARG_INT }, .allow_auto_repeat = true },
+#if HAVE_GPL
{ MP_CMD_OSD, "osd", { OARG_INT(-1) } },
+#endif
{ MP_CMD_PRINT_TEXT, "print-text", { ARG_STRING }, .allow_auto_repeat = true },
{ MP_CMD_SHOW_TEXT, "show-text", { ARG_STRING, OARG_INT(-1), OARG_INT(0) },
.allow_auto_repeat = true},