[MPlayer-cvslog] CVS: main mplayer.c,1.839,1.840
Jindrich Makovicka CVS
syncmail at mplayerhq.hu
Mon Apr 11 23:26:16 CEST 2005
CVS change done by Jindrich Makovicka CVS
Update of /cvsroot/mplayer/main
In directory mail:/var2/tmp/cvs-serv20570
Modified Files:
mplayer.c
Log Message:
allow sub_select and vobsub_lang to select particular subtitle
Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.839
retrieving revision 1.840
diff -u -r1.839 -r1.840
--- mplayer.c 9 Apr 2005 22:38:41 -0000 1.839
+++ mplayer.c 11 Apr 2005 21:26:13 -0000 1.840
@@ -3375,8 +3375,12 @@
case MP_CMD_SUB_SELECT:
if (global_sub_size) {
int source = -1;
+ int v = cmd->args[0].v.i;
- global_sub_pos++;
+ if (v < -1)
+ global_sub_pos++;
+ else
+ global_sub_pos = v;
if (global_sub_pos >= global_sub_size)
global_sub_pos = -1;
if (global_sub_pos >= 0)
More information about the MPlayer-cvslog
mailing list