summaryrefslogtreecommitdiffstats
path: root/mpvcore/options.h
diff options
context:
space:
mode:
authorPhilip Sequeira <phsequei@gmail.com>2013-08-13 21:25:50 -0400
committerwm4 <wm4@nowhere>2013-08-17 21:32:52 +0200
commitb018c7d936879dc2ea1bd49b78157a70f9353430 (patch)
tree53221ab06169baa10c007cb46f1c7ee64cb90f5e /mpvcore/options.h
parent8cebec62621cb6e9ed03aab65f5b011393ac588d (diff)
downloadmpv-b018c7d936879dc2ea1bd49b78157a70f9353430.tar.bz2
mpv-b018c7d936879dc2ea1bd49b78157a70f9353430.tar.xz
command: more intuitive chapter seek behavior
If close to chapter start, skipping back goes to previous chapter (no change). If more than <threshold> seconds in, skipping back will now go to the beginning of the current chapter instead. The threshold is set by the new option --chapter-seek-threshold and defaults to 5 seconds. A negative value disables the new functionality.
Diffstat (limited to 'mpvcore/options.h')
-rw-r--r--mpvcore/options.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/mpvcore/options.h b/mpvcore/options.h
index ff2b5954ff..9309cc1a85 100644
--- a/mpvcore/options.h
+++ b/mpvcore/options.h
@@ -83,6 +83,7 @@ typedef struct MPOpts {
int loop_times;
int ordered_chapters;
int chapter_merge_threshold;
+ double chapter_seek_threshold;
int quiet;
int load_config;
int use_filedir_conf;