From ece86d1061d17bd6c3d778029ca2cec1478b9539 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 3 Sep 2016 12:46:26 +0200 Subject: 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. --- DOCS/interface-changes.rst | 1 + player/configfiles.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/DOCS/interface-changes.rst b/DOCS/interface-changes.rst index ca7bec9b71..28319986d3 100644 --- a/DOCS/interface-changes.rst +++ b/DOCS/interface-changes.rst @@ -49,6 +49,7 @@ Interface changes - deprecate --vo-defaults (no replacement) - remove the vo-cmdline command. You can set OpenGL renderer options directly via properties instead. + - deprecate the ao and vo auto-profiles (they never made any sense) --- mpv 0.20.0 --- - add --image-display-duration option - this also means that image duration is not influenced by --mf-fps anymore in the general case (this is an 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); } } -- cgit v1.2.3