summaryrefslogtreecommitdiffstats
path: root/mpvcore/command.c
diff options
context:
space:
mode:
authorPhilip Sequeira <phsequei@gmail.com>2013-08-15 15:49:06 -0400
committerwm4 <wm4@nowhere>2013-08-17 21:32:41 +0200
commit8cebec62621cb6e9ed03aab65f5b011393ac588d (patch)
tree8a8a00ee975756e91d3388c34515381a6265622e /mpvcore/command.c
parentab81af477cd58d03a0c2762f4b465a36b2aead34 (diff)
downloadmpv-8cebec62621cb6e9ed03aab65f5b011393ac588d.tar.bz2
mpv-8cebec62621cb6e9ed03aab65f5b011393ac588d.tar.xz
command: allow seek to "chapter -1"
This will seek to the start of the file regardless of whether the first real chapter starts there or not.
Diffstat (limited to 'mpvcore/command.c')
-rw-r--r--mpvcore/command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mpvcore/command.c b/mpvcore/command.c
index d1513bd998..b04c05c9e6 100644
--- a/mpvcore/command.c
+++ b/mpvcore/command.c
@@ -1721,7 +1721,7 @@ static const m_option_t mp_properties[] = {
M_OPT_MIN, 0, 0, NULL },
{ "time-remaining", mp_property_remaining, CONF_TYPE_TIME },
{ "chapter", mp_property_chapter, CONF_TYPE_INT,
- M_OPT_MIN, 0, 0, NULL },
+ M_OPT_MIN, -1, 0, NULL },
M_OPTION_PROPERTY_CUSTOM("edition", mp_property_edition),
M_OPTION_PROPERTY_CUSTOM("quvi-format", mp_property_quvi_format),
{ "titles", mp_property_titles, CONF_TYPE_INT,