summaryrefslogtreecommitdiffstats
path: root/command.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-12-11 12:44:39 +0000
committerUoti Urpala <uau@glyph.nonexistent.invalid>2010-12-16 06:21:53 +0200
commita7f4b6b10279d8f7cf06a4859f10926c8e00f4a1 (patch)
treed360f15e50441cfa73c7669d86c59a4200d471d0 /command.c
parent41270c50cfb7b7a3b76cfbc0c8494b4a9df33da9 (diff)
downloadmpv-a7f4b6b10279d8f7cf06a4859f10926c8e00f4a1.tar.bz2
mpv-a7f4b6b10279d8f7cf06a4859f10926c8e00f4a1.tar.xz
commands: Allow cycling subtitles backwards with 'J'
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32680 b3059339-0415-0410-9bf9-f77b7e298cf2 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32714 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'command.c')
-rw-r--r--command.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/command.c b/command.c
index 6bf4825848..aa4fb7cb2b 100644
--- a/command.c
+++ b/command.c
@@ -2463,8 +2463,8 @@ static int show_property_osd(MPContext *mpctx, const char *pname)
*
* 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.
*
*@{
*/
@@ -2551,6 +2551,8 @@ static int set_property_command(MPContext *mpctx, mp_cmd_t *cmd)
// 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