# HG changeset patch # User reimar # Date 1246195062 0 # Node ID 794a26e68c2c0a42e60e8db1898b179905fd3823 # Parent 4453b905d55e9dee591bbdabecea3fe811a8bf63 Make set_property chapter 0-based like all other chapter-related property functions. diff -r 4453b905d55e -r 794a26e68c2c command.c --- a/command.c Sat Jun 27 12:53:58 2009 +0000 +++ b/command.c Sun Jun 28 13:17:42 2009 +0000 @@ -409,7 +409,7 @@ 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 @@ { "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,