[MPlayer-cvslog] CVS: main mplayer.c,1.842,1.843

Reimar Döffinger CVS syncmail at mplayerhq.hu
Thu Apr 28 16:43:20 CEST 2005


CVS change done by Reimar Döffinger CVS

Update of /cvsroot/mplayer/main
In directory mail:/var2/tmp/cvs-serv28662

Modified Files:
	mplayer.c 
Log Message:
adds a parameter to the switch_audio command to directly select a track.
Patch by kiriuja mplayer-patches at en-directo net


Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.842
retrieving revision 1.843
diff -u -r1.842 -r1.843
--- mplayer.c	22 Apr 2005 18:28:10 -0000	1.842
+++ mplayer.c	28 Apr 2005 14:43:16 -0000	1.843
@@ -3494,9 +3494,11 @@
     case MP_CMD_GET_PERCENT_POS : {
 	mp_msg(MSGT_GLOBAL,MSGL_INFO,MSGTR_AnsPercentPos, demuxer_get_percent_pos(demuxer));
     } break;
-    case MP_CMD_SWITCH_AUDIO :
-        demuxer_switch_audio(demuxer);
-        break;
+    case MP_CMD_SWITCH_AUDIO : {
+        int v = demuxer_switch_audio(demuxer, cmd->args[0].v.i);
+        if (identify)
+          mp_msg(MSGT_GLOBAL, MSGL_INFO, "ID_AUDIO_TRACK=%d\n", v);
+    } break;
     case MP_CMD_RUN : {
 #ifndef __MINGW32__
         if(!fork()) {




More information about the MPlayer-cvslog mailing list