1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-24 08:33:34 +00:00

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.
This commit is contained in:
wm4 2016-09-03 12:46:26 +02:00
parent c92450d7fb
commit ece86d1061
2 changed files with 3 additions and 0 deletions

View File

@ -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

View File

@ -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);
}
}