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.) --- options/options.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'options/options.c') diff --git a/options/options.c b/options/options.c index 63cd93c53f..af55529260 100644 --- a/options/options.c +++ b/options/options.c @@ -323,9 +323,12 @@ const m_option_t mp_opts[] = { OPT_TRACKCHOICE("vid", stream_id[0][STREAM_VIDEO]), OPT_TRACKCHOICE("sid", stream_id[0][STREAM_SUB]), OPT_TRACKCHOICE("secondary-sid", stream_id[1][STREAM_SUB]), - OPT_TRACKCHOICE("ff-aid", stream_id_ff[STREAM_AUDIO]), - OPT_TRACKCHOICE("ff-vid", stream_id_ff[STREAM_VIDEO]), - OPT_TRACKCHOICE("ff-sid", stream_id_ff[STREAM_SUB]), + OPT_TRACKCHOICE("ff-aid", stream_id_ff[STREAM_AUDIO], + .deprecation_message = "no replacement"), + OPT_TRACKCHOICE("ff-vid", stream_id_ff[STREAM_VIDEO], + .deprecation_message = "no replacement"), + OPT_TRACKCHOICE("ff-sid", stream_id_ff[STREAM_SUB], + .deprecation_message = "no replacement"), OPT_ALIAS("sub", "sid"), OPT_ALIAS("video", "vid"), OPT_ALIAS("audio", "aid"), -- cgit v1.2.3