diff options
author | wm4 <wm4@nowhere> | 2017-12-20 05:50:42 +0100 |
---|---|---|
committer | Martin Herkt <lachs0r@srsfckn.biz> | 2017-12-21 19:51:30 +0100 |
commit | 29647880551c7b15944d6299a2cd5d502a4efb88 (patch) | |
tree | 8fa5e3ba96f251788fdee2860540255ce818c387 /player | |
parent | 688768b9bda24a06efac4349ad25e8fac09c35e5 (diff) | |
download | mpv-29647880551c7b15944d6299a2cd5d502a4efb88.tar.bz2 mpv-29647880551c7b15944d6299a2cd5d502a4efb88.tar.xz |
options: deprecate --ff- options and properties
Some old crap which nobody needs and which probably nobody uses.
This relies on a GCC extension: using "## __VA_ARGS__" to remove the
comma from the argument list if the va args are empty. It's supported
by clang, and there's some chance newer standards will introduce a
proper way to do this. (Even if it breaks somewhere, it will be a
problem only for 1 release, since I want to drop the deprecated
properties immediately.)
Diffstat (limited to 'player')
-rw-r--r-- | player/command.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/player/command.c b/player/command.c index 9de5e251f6..7830c9fb0b 100644 --- a/player/command.c +++ b/player/command.c @@ -2193,6 +2193,8 @@ static int property_switch_track_ff(void *ctx, struct m_property *prop, *(int *) arg = track ? track->ff_index : -2; return M_PROPERTY_OK; case M_PROPERTY_SET: { + MP_WARN(mpctx, "Warning: property '%s' is deprecated and " + "will be removed in the future.\n", prop->name); int id = *(int *)arg; if (mpctx->playback_initialized) { track = NULL; |