diff options
Diffstat (limited to 'mpvcore')
-rw-r--r-- | mpvcore/mplayer.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/mpvcore/mplayer.c b/mpvcore/mplayer.c index 6c359a6b82..12bf0a3aec 100644 --- a/mpvcore/mplayer.c +++ b/mpvcore/mplayer.c @@ -4174,10 +4174,12 @@ static void play_current_file(struct MPContext *mpctx) if (opts->reset_options) { for (int n = 0; opts->reset_options[n]; n++) { const char *opt = opts->reset_options[n]; - if (strcmp(opt, "all") == 0) { - m_config_backup_all_opts(mpctx->mconfig); - } else { - m_config_backup_opt(mpctx->mconfig, opt); + if (opt[0]) { + if (strcmp(opt, "all") == 0) { + m_config_backup_all_opts(mpctx->mconfig); + } else { + m_config_backup_opt(mpctx->mconfig, opt); + } } } } |