mirror of
https://github.com/mpv-player/mpv
synced 2025-02-23 00:06:56 +00:00
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
This commit is contained in:
parent
e5dbb5e9c4
commit
7b79fac19a
@ -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 },
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user