[MPlayer-cvslog] r29407 - trunk/command.c

reimar subversion at mplayerhq.hu
Sun Jun 28 15:17:43 CEST 2009


Author: reimar
Date: Sun Jun 28 15:17:42 2009
New Revision: 29407

Log:
Make set_property chapter 0-based like all other chapter-related
property functions.

Modified:
   trunk/command.c

Modified: trunk/command.c
==============================================================================
--- trunk/command.c	Sat Jun 27 14:53:58 2009	(r29406)
+++ trunk/command.c	Sun Jun 28 15:17:42 2009	(r29407)
@@ -409,7 +409,7 @@ static int mp_property_chapter(m_option_
         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,


More information about the MPlayer-cvslog mailing list