summaryrefslogtreecommitdiffstats
path: root/command.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-06-20 13:19:24 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-06-20 13:19:24 +0000
commitcf03ba5c1117e8a462de6c1c9d3031238214898f (patch)
tree8ee669b04c13becbab16c844cb33066333c90d22 /command.c
parentcdf00c3db319a6e66a72144927d35156fa27afab (diff)
downloadmpv-cf03ba5c1117e8a462de6c1c9d3031238214898f.tar.bz2
mpv-cf03ba5c1117e8a462de6c1c9d3031238214898f.tar.xz
Do not use MAX_A/V_STREAMS as upper limit for switch_audio/switch_video
They take the stream id as argument, which is not necessarily the same as the as the index in the streams array and can be larger. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29375 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'command.c')
-rw-r--r--command.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/command.c b/command.c
index 3e4be61b06..c0691926ff 100644
--- a/command.c
+++ b/command.c
@@ -2029,7 +2029,7 @@ static const m_option_t mp_properties[] = {
{ "channels", mp_property_channels, CONF_TYPE_INT,
0, 0, 0, NULL },
{ "switch_audio", mp_property_audio, CONF_TYPE_INT,
- CONF_RANGE, -2, MAX_A_STREAMS - 1, NULL },
+ CONF_RANGE, -2, 65535, NULL },
{ "balance", mp_property_balance, CONF_TYPE_FLOAT,
M_OPT_RANGE, -1, 1, NULL },
@@ -2075,7 +2075,7 @@ static const m_option_t mp_properties[] = {
{ "aspect", mp_property_aspect, CONF_TYPE_FLOAT,
0, 0, 0, NULL },
{ "switch_video", mp_property_video, CONF_TYPE_INT,
- CONF_RANGE, -2, MAX_V_STREAMS - 1, NULL },
+ CONF_RANGE, -2, 65535, NULL },
{ "switch_program", mp_property_program, CONF_TYPE_INT,
CONF_RANGE, -1, 65535, NULL },