summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authornicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-11-18 18:23:38 +0000
committernicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-11-18 18:23:38 +0000
commit7b79fac19a53019b0338e2204d2890f4649e24b1 (patch)
treefa2eb169eef56174234c0fee02d0bc36bf84d195 /mplayer.c
parente5dbb5e9c48ecd5d40f24ac565c55113cee80860 (diff)
downloadmpv-7b79fac19a53019b0338e2204d2890f4649e24b1.tar.bz2
mpv-7b79fac19a53019b0338e2204d2890f4649e24b1.tar.xz
switch_audio and switch_video properties should be in the range -2..MAX_x_STREAMS-1
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21036 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mplayer.c b/mplayer.c
index 393a64b690..e65195c236 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -2519,7 +2519,7 @@ static m_option_t mp_properties[] = {
{ "channels", mp_property_channels, CONF_TYPE_INT,
0, 0, 0, NULL },
{ "switch_audio", mp_property_audio, CONF_TYPE_INT,
- -1, -1, 0, NULL },
+ CONF_RANGE, -2, MAX_A_STREAMS-1, NULL },
// Video
{ "fullscreen", mp_property_fullscreen, CONF_TYPE_FLAG,
@@ -2561,7 +2561,7 @@ static m_option_t mp_properties[] = {
{ "aspect", mp_property_aspect, CONF_TYPE_FLOAT,
0, 0, 0, NULL },
{ "switch_video", mp_property_video, CONF_TYPE_INT,
- -1, -1, 0, NULL },
+ CONF_RANGE, -2, MAX_V_STREAMS-1, NULL },
{ "switch_program", mp_property_program, CONF_TYPE_INT,
CONF_RANGE, -1, 65535, NULL },