Mercurial > mplayer.hg
diff command.c @ 32593:0c5bb45690ea
Allow cycling subtitles backwards with 'J'.
author | reimar |
---|---|
date | Sat, 11 Dec 2010 12:44:39 +0000 |
parents | aa82dfc7bd49 |
children | 6d08af681d54 |
line wrap: on
line diff
--- a/command.c Sat Dec 11 12:23:07 2010 +0000 +++ b/command.c Sat Dec 11 12:44:39 2010 +0000 @@ -2302,8 +2302,8 @@ * * Toggle commands take 0 or 1 parameters. With no parameter * or a value less than the property minimum it just steps the - * property to its next value. Otherwise it sets it to the given - * value. + * property to its next or previous value respectively. + * Otherwise it sets it to the given value. * *@{ */ @@ -2396,6 +2396,8 @@ // set to value if (cmd->nargs > 0 && cmd->args[0].v.i >= prop->min) r = mp_property_do(pname, M_PROPERTY_SET, &cmd->args[0].v.i, mpctx); + else if (cmd->nargs > 0) + r = mp_property_do(pname, M_PROPERTY_STEP_DOWN, NULL, mpctx); else r = mp_property_do(pname, M_PROPERTY_STEP_UP, NULL, mpctx); } else if (cmd->args[1].v.i) //set