diff input/input.c @ 15285:39eb8a327ea9

adds a parameter to the switch_audio command to directly select a track. Patch by kiriuja mplayer-patches at en-directo net
author reimar
date Thu, 28 Apr 2005 14:43:19 +0000
parents 9c7c363837c9
children cec4a515061f
line wrap: on
line diff
--- a/input/input.c	Wed Apr 27 21:59:38 2005 +0000
+++ b/input/input.c	Thu Apr 28 14:43:19 2005 +0000
@@ -82,7 +82,7 @@
   { MP_CMD_SUB_LOG, "sub_log", 0, { {-1,{0}} } },
   { MP_CMD_GET_PERCENT_POS, "get_percent_pos", 0, { {-1,{0}} } },
   { MP_CMD_GET_TIME_LENGTH, "get_time_length", 0, { {-1,{0}} } },
-  { MP_CMD_SWITCH_AUDIO, "switch_audio", 0, { {-1,{0}} } },
+  { MP_CMD_SWITCH_AUDIO, "switch_audio", 0, { { MP_CMD_ARG_INT,{-1} }, {-1,{0}} } },
 #ifdef USE_TV
   { MP_CMD_TV_STEP_CHANNEL, "tv_step_channel", 1,  { { MP_CMD_ARG_INT ,{0}}, {-1,{0}} }},
   { MP_CMD_TV_STEP_NORM, "tv_step_norm",0, { {-1,{0}} }  },