summaryrefslogtreecommitdiffstats
path: root/options/options.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-04-17 23:55:04 +0200
committerwm4 <wm4@nowhere>2014-04-17 23:55:42 +0200
commit1b398e99f735e141d88186d4e1a722b9a00f4b9a (patch)
treed7a4fdcba5071b020ac7038ba40bc67af1973a2f /options/options.c
parent5059039c95f51cfe33f828a66d55b1255ab1626d (diff)
downloadmpv-1b398e99f735e141d88186d4e1a722b9a00f4b9a.tar.bz2
mpv-1b398e99f735e141d88186d4e1a722b9a00f4b9a.tar.xz
player: add a --loop-file option
Unlike --loop, loops a file instead of the playlist.
Diffstat (limited to 'options/options.c')
-rw-r--r--options/options.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c
index eabdeb0520..509e8a7e2b 100644
--- a/options/options.c
+++ b/options/options.c
@@ -560,6 +560,7 @@ const m_option_t mp_opts[] = {
OPT_CHOICE_OR_INT("loop", loop_times, M_OPT_GLOBAL, 2, 10000,
({"no", -1}, {"1", -1},
{"inf", 0})),
+ OPT_FLAG("loop-file", loop_file, 0),
OPT_FLAG("resume-playback", position_resume, 0),
OPT_FLAG("save-position-on-quit", position_save_on_quit, 0),