summaryrefslogtreecommitdiffstats
path: root/command.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2011-04-23 16:48:36 +0000
committerUoti Urpala <uau@mplayer2.org>2011-05-02 00:36:21 +0300
commite7e4d1d8022a012d03dffec728a9a276c4717bf4 (patch)
treec763f017bb02f078aece6d0d6a38ec00126b2962 /command.c
parente631474c76aec7810abeda1af9d8e5b8ce8ab87b (diff)
downloadmpv-e7e4d1d8022a012d03dffec728a9a276c4717bf4.tar.bz2
mpv-e7e4d1d8022a012d03dffec728a9a276c4717bf4.tar.xz
commands: Fix DVD angle cycling up
Patch by 侯红勋 [houhongxun gmail com] git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@33317 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'command.c')
-rw-r--r--command.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/command.c b/command.c
index 48f6108a2c..1e54327d44 100644
--- a/command.c
+++ b/command.c
@@ -605,6 +605,8 @@ static int mp_property_angle(m_option_t *prop, int action, void *arg,
angle += step;
if (angle < 1) //cycle
angle = angles;
+ else if (angle > angles)
+ angle = 1;
break;
}
default: