diff options
Diffstat (limited to 'mpvcore/parser-mpcmd.c')
-rw-r--r-- | mpvcore/parser-mpcmd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mpvcore/parser-mpcmd.c b/mpvcore/parser-mpcmd.c index 55615d950e..e85085b808 100644 --- a/mpvcore/parser-mpcmd.c +++ b/mpvcore/parser-mpcmd.c @@ -114,6 +114,7 @@ static bool split_opt(struct parse_state *p) int m_config_parse_mp_command_line(m_config_t *config, struct playlist *files, int argc, char **argv) { + struct MPOpts *opts = config->optstruct; int ret = M_OPT_UNKNOWN; int mode = 0; struct playlist_entry *local_start = NULL; @@ -187,7 +188,7 @@ int m_config_parse_mp_command_line(m_config_t *config, struct playlist *files, if (bstrcmp0(p.arg, "playlist") == 0) { // append the playlist to the local args char *param0 = bstrdup0(NULL, p.param); - struct playlist *pl = playlist_parse_file(param0); + struct playlist *pl = playlist_parse_file(param0, opts); talloc_free(param0); if (!pl) { mp_tmsg(MSGT_CFGPARSER, MSGL_FATAL, |