From 1b398e99f735e141d88186d4e1a722b9a00f4b9a Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 17 Apr 2014 23:55:04 +0200 Subject: player: add a --loop-file option Unlike --loop, loops a file instead of the playlist. --- options/options.c | 1 + options/options.h | 1 + 2 files changed, 2 insertions(+) (limited to 'options') 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), diff --git a/options/options.h b/options/options.h index 9bd60c2630..650ee21f5e 100644 --- a/options/options.h +++ b/options/options.h @@ -100,6 +100,7 @@ typedef struct MPOpts { char *stream_capture; char *stream_dump; int loop_times; + int loop_file; int shuffle; int ordered_chapters; char *ordered_chapters_files; -- cgit v1.2.3