mirror of
https://github.com/mpv-player/mpv
synced 2025-02-27 02:40:53 +00:00
options: deprecate --vo-defaults
With the conversion from sub-options to global options, this becomes useless. This change also comes slightly too soon, because not all VOs have been changed yet.
This commit is contained in:
parent
849480d0c9
commit
b2c84a91b6
@ -45,6 +45,7 @@ Interface changes
|
||||
profile does not force the VO. This means if you use the --vo option to
|
||||
set another VO, it won't work. But this also means it can be used with
|
||||
opengl-cb.
|
||||
- deprecate --vo-defaults (no replacement)
|
||||
--- 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
|
||||
|
@ -16,6 +16,8 @@ normal driver parameters.
|
||||
``--vo-defaults=<driver1[:parameter1:parameter2:...],driver2,...>``
|
||||
Set defaults for each driver.
|
||||
|
||||
Deprecated. No replacement.
|
||||
|
||||
.. note::
|
||||
|
||||
See ``--vo=help`` for a list of compiled-in video output drivers.
|
||||
|
@ -608,10 +608,11 @@ extern const char m_option_path_separator;
|
||||
#define OPT_STRING(...) \
|
||||
OPT_GENERAL(char*, __VA_ARGS__, .type = &m_option_type_string)
|
||||
|
||||
#define OPT_SETTINGSLIST(optname, varname, flags, objlist) \
|
||||
#define OPT_SETTINGSLIST(optname, varname, flags, objlist, ...) \
|
||||
OPT_GENERAL(m_obj_settings_t*, optname, varname, flags, \
|
||||
.type = &m_option_type_obj_settings_list, \
|
||||
.priv = (void*)MP_EXPECT_TYPE(const struct m_obj_list*, objlist))
|
||||
.priv = (void*)MP_EXPECT_TYPE(const struct m_obj_list*, objlist), \
|
||||
__VA_ARGS__)
|
||||
|
||||
#define OPT_IMAGEFORMAT(...) \
|
||||
OPT_GENERAL(int, __VA_ARGS__, .type = &m_option_type_imgfmt)
|
||||
|
@ -102,8 +102,9 @@ const struct m_opt_choice_alternatives mp_hwdec_names[] = {
|
||||
#define OPT_BASE_STRUCT struct mp_vo_opts
|
||||
|
||||
static const m_option_t mp_vo_opt_list[] = {
|
||||
OPT_SETTINGSLIST("vo", video_driver_list, 0, &vo_obj_list),
|
||||
OPT_SETTINGSLIST("vo-defaults", vo_defs, 0, &vo_obj_list),
|
||||
OPT_SETTINGSLIST("vo", video_driver_list, 0, &vo_obj_list, ),
|
||||
OPT_SETTINGSLIST("vo-defaults", vo_defs, 0, &vo_obj_list,
|
||||
.deprecation_message = "deprecated, use global options"),
|
||||
OPT_CHOICE_C("hwdec-preload", hwdec_preload_api, 0, mp_hwdec_names),
|
||||
OPT_SUBSTRUCT("sws", sws_opts, sws_conf, 0),
|
||||
OPT_FLAG("taskbar-progress", taskbar_progress, 0),
|
||||
@ -375,10 +376,10 @@ const m_option_t mp_opts[] = {
|
||||
|
||||
// ------------------------- codec/vfilter options --------------------
|
||||
|
||||
OPT_SETTINGSLIST("af-defaults", af_defs, 0, &af_obj_list),
|
||||
OPT_SETTINGSLIST("af*", af_settings, 0, &af_obj_list),
|
||||
OPT_SETTINGSLIST("vf-defaults", vf_defs, 0, &vf_obj_list),
|
||||
OPT_SETTINGSLIST("vf*", vf_settings, 0, &vf_obj_list),
|
||||
OPT_SETTINGSLIST("af-defaults", af_defs, 0, &af_obj_list, ),
|
||||
OPT_SETTINGSLIST("af*", af_settings, 0, &af_obj_list, ),
|
||||
OPT_SETTINGSLIST("vf-defaults", vf_defs, 0, &vf_obj_list, ),
|
||||
OPT_SETTINGSLIST("vf*", vf_settings, 0, &vf_obj_list, ),
|
||||
|
||||
OPT_CHOICE("deinterlace", deinterlace, 0,
|
||||
({"auto", -1},
|
||||
@ -469,8 +470,8 @@ const m_option_t mp_opts[] = {
|
||||
OPT_FLAG("sub-clear-on-seek", sub_clear_on_seek, 0),
|
||||
|
||||
//---------------------- libao/libvo options ------------------------
|
||||
OPT_SETTINGSLIST("ao", audio_driver_list, 0, &ao_obj_list),
|
||||
OPT_SETTINGSLIST("ao-defaults", ao_defs, 0, &ao_obj_list),
|
||||
OPT_SETTINGSLIST("ao", audio_driver_list, 0, &ao_obj_list, ),
|
||||
OPT_SETTINGSLIST("ao-defaults", ao_defs, 0, &ao_obj_list, ),
|
||||
OPT_STRING("audio-device", audio_device, 0),
|
||||
OPT_STRING("audio-client-name", audio_client_name, 0),
|
||||
OPT_FLAG("audio-fallback-to-null", ao_null_fallback, 0),
|
||||
|
Loading…
Reference in New Issue
Block a user