summaryrefslogtreecommitdiffstats
path: root/core/m_option.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-11-18 18:02:14 +0100
committerwm4 <wm4@nowhere>2012-11-20 18:00:11 +0100
commitf5e2ee513862da957858be4963cd6535fa23f861 (patch)
treee406d96b9bafb6d041e08b3c0d422188a57d83d5 /core/m_option.h
parent39428525c372e593f042c107e35e38b5409afc07 (diff)
downloadmpv-f5e2ee513862da957858be4963cd6535fa23f861.tar.bz2
mpv-f5e2ee513862da957858be4963cd6535fa23f861.tar.xz
options: support chapters for --start and --end
The --start and --end switch now accept a chapter number. The chapter number is prefixed with '#', e.g. "--start=#2" jumps to chapter 2. The chapter support might be able to replace --chapter completely, but for now I am not sure how well this works out with e.g. DVDs and BDs, and a separate --chapter option is useful interface-wise. (This was supposed to be added in 51503a, but apparently the fixup commit adding it was lost in a rebase. This might also be the reason for the mess-up fixed in 394285.)
Diffstat (limited to 'core/m_option.h')
-rw-r--r--core/m_option.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/m_option.h b/core/m_option.h
index d7041f9cf4..ed9cc33f5f 100644
--- a/core/m_option.h
+++ b/core/m_option.h
@@ -63,6 +63,7 @@ enum m_rel_time_type {
REL_TIME_ABSOLUTE,
REL_TIME_NEGATIVE,
REL_TIME_PERCENT,
+ REL_TIME_CHAPTER,
};
struct m_rel_time {