From 29647880551c7b15944d6299a2cd5d502a4efb88 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 20 Dec 2017 05:50:42 +0100 Subject: 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.) --- player/command.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'player') 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; -- cgit v1.2.3