From 98e400216d7c6545ffd7d1909c7bfac09b9862f3 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 12 Dec 2014 23:45:16 +0100 Subject: player: add a --keep-open=always mode The --keep-open behavior was recently changed to act only on the last file due to user requests (see commit 735a9c39). But the old behavior was useful too, so bring it back as an additional mode. Fixes #1332 (or rather, should help with it). --- options/options.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'options/options.c') diff --git a/options/options.c b/options/options.c index 7c52a60a2a..fb48c39e74 100644 --- a/options/options.c +++ b/options/options.c @@ -186,7 +186,10 @@ const m_option_t mp_opts[] = { OPT_TIME("ab-loop-b", ab_loop[1], 0, .min = MP_NOPTS_VALUE), OPT_FLAG("pause", pause, M_OPT_FIXED), - OPT_FLAG("keep-open", keep_open, 0), + OPT_CHOICE("keep-open", keep_open, M_OPT_OPTIONAL_PARAM, + ({"no", 0}, + {"yes", 1}, {"", 1}, + {"always", 2})), OPT_CHOICE("index", index_mode, 0, ({"default", 1}, {"recreate", 0})), -- cgit v1.2.3