summaryrefslogtreecommitdiffstats
path: root/command.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-06-28 13:17:42 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-06-28 13:17:42 +0000
commit15db8a0c37b2327e79d5f167facef0b4db8bf61b (patch)
tree161997f7e1e73e45892f3708304fb36ee7e903b6 /command.c
parentc6672ee42c4f7e6fbbb77e6dcbffa87ffa84e605 (diff)
downloadmpv-15db8a0c37b2327e79d5f167facef0b4db8bf61b.tar.bz2
mpv-15db8a0c37b2327e79d5f167facef0b4db8bf61b.tar.xz
Make set_property chapter 0-based like all other chapter-related
property functions. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29407 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'command.c')
-rw-r--r--command.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/command.c b/command.c
index c0691926ff..ff36cd8c8b 100644
--- a/command.c
+++ b/command.c
@@ -409,7 +409,7 @@ static int mp_property_chapter(m_option_t *prop, int action, void *arg,
if (!arg)
return M_PROPERTY_ERROR;
M_PROPERTY_CLAMP(prop, *(int*)arg);
- step_all = *(int *)arg - (chapter + 1);
+ step_all = *(int *)arg - chapter;
chapter += step_all;
break;
case M_PROPERTY_STEP_UP:
@@ -2001,7 +2001,7 @@ static const m_option_t mp_properties[] = {
{ "time_pos", mp_property_time_pos, CONF_TYPE_TIME,
M_OPT_MIN, 0, 0, NULL },
{ "chapter", mp_property_chapter, CONF_TYPE_INT,
- M_OPT_MIN, 1, 0, NULL },
+ M_OPT_MIN, 0, 0, NULL },
{ "chapters", mp_property_chapters, CONF_TYPE_INT,
0, 0, 0, NULL },
{ "angle", mp_property_angle, CONF_TYPE_INT,