summaryrefslogtreecommitdiffstats
path: root/options
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-11-02 16:47:23 +0100
committerwm4 <wm4@nowhere>2014-11-02 17:23:04 +0100
commit1cebd16350229d2ab1441f5061079ce9240fb22f (patch)
tree8e6ca8870280780b309ed0ce8d7bbb9048fc7c48 /options
parent95a5624946f3a6be3c7b79badebf1829f4633539 (diff)
downloadmpv-1cebd16350229d2ab1441f5061079ce9240fb22f.tar.bz2
mpv-1cebd16350229d2ab1441f5061079ce9240fb22f.tar.xz
player: add --chapters-file option
Note that you can't pass .cue or .edl files to it, at least not yet. Requested in context of allowing to specify custom chapters. For that to work well, we probably need to add some sort of chapter metadata pseudo-demuxer.
Diffstat (limited to 'options')
-rw-r--r--options/options.c2
-rw-r--r--options/options.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c
index 473e04f56e..ef1a383450 100644
--- a/options/options.c
+++ b/options/options.c
@@ -497,6 +497,8 @@ const m_option_t mp_opts[] = {
OPT_DOUBLE("chapter-seek-threshold", chapter_seek_threshold, 0),
+ OPT_STRING("chapters-file", chapter_file, M_OPT_FILE),
+
OPT_FLAG("load-unsafe-playlists", load_unsafe_playlists, 0),
OPT_FLAG("merge-files", merge_files, 0),
diff --git a/options/options.h b/options/options.h
index d9065c1877..9dddf9b94e 100644
--- a/options/options.h
+++ b/options/options.h
@@ -118,6 +118,7 @@ typedef struct MPOpts {
char *ordered_chapters_files;
int chapter_merge_threshold;
double chapter_seek_threshold;
+ char *chapter_file;
int load_unsafe_playlists;
int merge_files;
int quiet;