summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2018-05-21 14:58:40 +0200
committerwm4 <wm4@nowhere>2018-05-24 19:56:35 +0200
commit160e5c8377840ddc5cb80ab28a897c46f46851d2 (patch)
tree3e11fe7e956e022eceddf9419f863e5b6a1a7086 /player
parent455af6aa68a96fa38f17174c35e95e13098886e0 (diff)
downloadmpv-160e5c8377840ddc5cb80ab28a897c46f46851d2.tar.bz2
mpv-160e5c8377840ddc5cb80ab28a897c46f46851d2.tar.xz
player: remove deprecated vo/ao auto profiles
These were deprecated almost 2 years ago. Now they happen to be in the way.
Diffstat (limited to 'player')
-rw-r--r--player/configfiles.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/player/configfiles.c b/player/configfiles.c
index 04e0ea4132..8a7e6d7111 100644
--- a/player/configfiles.c
+++ b/player/configfiles.c
@@ -140,27 +140,18 @@ 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);
}
}
void mp_load_auto_profiles(struct MPContext *mpctx)
{
- struct MPOpts *opts = mpctx->opts;
-
mp_auto_load_profile(mpctx, "protocol",
mp_split_proto(bstr0(mpctx->filename), NULL));
mp_auto_load_profile(mpctx, "extension",
bstr0(mp_splitext(mpctx->filename, NULL)));
mp_load_per_file_config(mpctx);
-
- if (opts->vo->video_driver_list)
- mp_auto_load_profile(mpctx, "vo", bstr0(opts->vo->video_driver_list[0].name));
- if (opts->audio_driver_list)
- mp_auto_load_profile(mpctx, "ao", bstr0(opts->audio_driver_list[0].name));
}
#define MP_WATCH_LATER_CONF "watch_later"