summaryrefslogtreecommitdiffstats
path: root/player/configfiles.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-09-03 12:46:26 +0200
committerwm4 <wm4@nowhere>2016-09-03 12:46:32 +0200
commitece86d1061d17bd6c3d778029ca2cec1478b9539 (patch)
tree098f03b312a2a96f1eae87e8a10e21fa10d262e9 /player/configfiles.c
parentc92450d7fb62adcfde79e96b893a5740d99049d7 (diff)
downloadmpv-ece86d1061d17bd6c3d778029ca2cec1478b9539.tar.bz2
mpv-ece86d1061d17bd6c3d778029ca2cec1478b9539.tar.xz
config: deprecate ao and vo auto-profiles
These never made any sense. They checked the --vo/--ao option, and applied the profile corresponding to the first entry. So the only way to get any use of those was to use the --ao or --vo option explicitly. You can get the same functionality by making a manual profile, making these force the ao/vo, and then using --profile on command line instead of --vo/--ao.
Diffstat (limited to 'player/configfiles.c')
-rw-r--r--player/configfiles.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/player/configfiles.c b/player/configfiles.c
index 59cb510bf8..ed53e5882c 100644
--- a/player/configfiles.c
+++ b/player/configfiles.c
@@ -137,6 +137,8 @@ static void mp_auto_load_profile(struct MPContext *mpctx, char *category,
m_profile_t *p = m_config_get_profile0(mpctx->mconfig, t);
if (p) {
MP_INFO(mpctx, "Auto-loading profile '%s'\n", t);
+ if (strcmp(category, "ao") == 0 || strcmp(category, "vo") == 0)
+ MP_WARN(mpctx, "'%s' auto profiles are deprecated.\n", category);
m_config_set_profile(mpctx->mconfig, t, FILE_LOCAL_FLAGS);
}
}