diff options
author | nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-11-18 18:23:38 +0000 |
---|---|---|
committer | nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-11-18 18:23:38 +0000 |
commit | 7b79fac19a53019b0338e2204d2890f4649e24b1 (patch) | |
tree | fa2eb169eef56174234c0fee02d0bc36bf84d195 | |
parent | e5dbb5e9c48ecd5d40f24ac565c55113cee80860 (diff) | |
download | mpv-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
-rw-r--r-- | mplayer.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 }, |