diff options
author | Guido Cella <guido@guidocella.xyz> | 2021-07-21 18:43:52 +0200 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2021-07-21 16:56:54 +0000 |
commit | 36b7cff5826f2d9352831bce9a6a84a638acb44b (patch) | |
tree | c3dbefc3571bbd8e651c5661ca932475f04df82f /options/m_config_frontend.c | |
parent | 7f4841ff39f2047bb2338cf2a17ce1ee860a2716 (diff) | |
download | mpv-36b7cff5826f2d9352831bce9a6a84a638acb44b.tar.bz2 mpv-36b7cff5826f2d9352831bce9a6a84a638acb44b.tar.xz |
manpage: fix watch-later-options examples
--watch-later-options-remove doesn't accept multiple options, so split
the example.
Also suggest the more correct -clr to empty the list, and remove the
workaround to not print an error with --watch-later-options=
Diffstat (limited to 'options/m_config_frontend.c')
-rw-r--r-- | options/m_config_frontend.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/options/m_config_frontend.c b/options/m_config_frontend.c index 4a8c583f91..f8dbbcf5b5 100644 --- a/options/m_config_frontend.c +++ b/options/m_config_frontend.c @@ -249,9 +249,7 @@ bool m_config_watch_later_backup_opt_changed(struct m_config *config, { struct m_config_option *co = m_config_get_co(config, bstr0(opt_name)); if (!co) { - // --watch-later-options= makes the first list item an empty string. - if (strcmp(opt_name, "") != 0) - MP_ERR(config, "Option %s not found.\n", opt_name); + MP_ERR(config, "Option %s not found.\n", opt_name); return false; } |