diff options
author | wm4 <wm4@nowhere> | 2015-02-13 21:46:38 +0100 |
---|---|---|
committer | Diogo Franco (Kovensky) <diogomfranco@gmail.com> | 2015-02-16 18:12:17 +0900 |
commit | 34a856f4653d893d0806a37fbd35a2053781f03f (patch) | |
tree | d4894a6d4678b00f7971f371125afbf2b0d567b9 | |
parent | db218a8d25fd2fa161b9072e5534c917ce2398ff (diff) | |
download | mpv-34a856f4653d893d0806a37fbd35a2053781f03f.tar.bz2 mpv-34a856f4653d893d0806a37fbd35a2053781f03f.tar.xz |
command: mark get_property as deprecated
Using it just makes no sense. But we're really being nice about this and
don't remove it immediately.
(cherry picked from commit fd5403cb404ca8fb30c2c6b1f415201bbce40d77)
-rw-r--r-- | DOCS/man/input.rst | 5 | ||||
-rw-r--r-- | player/command.c | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/DOCS/man/input.rst b/DOCS/man/input.rst index 954520147a..77b13ed518 100644 --- a/DOCS/man/input.rst +++ b/DOCS/man/input.rst @@ -618,9 +618,8 @@ Input Commands that are Possibly Subject to Change unseekable streams that are going out of sync. This command might be changed or removed in the future. -Undocumented commands: ``tv_last_channel`` (TV/DVB only), ``get_property`` (?), -``ao_reload`` (experimental/internal). - +Undocumented commands: ``tv_last_channel`` (TV/DVB only), +``get_property`` (deprecated), ``ao_reload`` (experimental/internal). Hooks ~~~~~ diff --git a/player/command.c b/player/command.c index f20e6050b4..b89f7c0050 100644 --- a/player/command.c +++ b/player/command.c @@ -4329,6 +4329,10 @@ int run_command(MPContext *mpctx, mp_cmd_t *cmd) } MP_INFO(mpctx, "ANS_%s=%s\n", cmd->args[0].v.s, tmp); talloc_free(tmp); + MP_WARN(mpctx, "The get_property command is deprecated and " + "will be removed in the next release.\n" + "Use libmpv or the JSON IPC. " + "(Or print_text, if you must.)"); break; } |