# HG changeset patch # User reimar # Date 1245503964 0 # Node ID 09938ba8299127fa7544e52f8e08afef115a9caf # Parent 183e5a970176d69d61047e9e219f8d5be4a424e9 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. diff -r 183e5a970176 -r 09938ba82991 command.c --- a/command.c Fri Jun 19 20:21:58 2009 +0000 +++ b/command.c Sat Jun 20 13:19:24 2009 +0000 @@ -2029,7 +2029,7 @@ { "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 @@ { "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 },