[Mplayer-cvslog] CVS: main mplayer.c,1.508,1.509 cfg-mplayer.h,1.151,1.152

Ivan Kalvachev iive at mplayerhq.hu
Mon May 27 19:30:48 CEST 2002


Update of /cvsroot/mplayer/main
In directory mail:/var/tmp.root/cvs-serv7282

Modified Files:
	mplayer.c cfg-mplayer.h 
Log Message:
added -dumpsrtsub option for SubRip format

Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.508
retrieving revision 1.509
diff -u -r1.508 -r1.509
--- mplayer.c	27 May 2002 16:40:10 -0000	1.508
+++ mplayer.c	27 May 2002 17:30:46 -0000	1.509
@@ -1083,7 +1083,7 @@
 d_dvdsub=demuxer->sub;
 
 // DUMP STREAMS:
-if((stream_dump_type)&&(stream_dump_type!=4)){
+if((stream_dump_type)&&(stream_dump_type<4)){
   FILE *f;
   demux_stream_t *ds=NULL;
   current_module="dump";
@@ -1213,6 +1213,7 @@
   }
   if(subtitles && stream_dump_type==3) list_sub_file(subtitles);
   if(subtitles && stream_dump_type==4) dump_mpsub(subtitles, sh_video->fps);
+  if(subtitles && stream_dump_type==6) dump_srt(subtitles);
 }
 #endif
 

Index: cfg-mplayer.h
===================================================================
RCS file: /cvsroot/mplayer/main/cfg-mplayer.h,v
retrieving revision 1.151
retrieving revision 1.152
diff -u -r1.151 -r1.152
--- cfg-mplayer.h	27 May 2002 11:19:42 -0000	1.151
+++ cfg-mplayer.h	27 May 2002 17:30:46 -0000	1.152
@@ -307,6 +307,7 @@
 	{"dumpsub", &stream_dump_type, CONF_TYPE_FLAG, 0, 0, 3, NULL},
 	{"dumpmpsub", &stream_dump_type, CONF_TYPE_FLAG, 0, 0, 4, NULL},
 	{"dumpstream", &stream_dump_type, CONF_TYPE_FLAG, 0, 0, 5, NULL},
+	{"dumpsrtsub", &stream_dump_type, CONF_TYPE_FLAG, 0, 0, 6, NULL},
 
 #ifdef HAVE_LIRC
 	{"lircconf", &lirc_configfile, CONF_TYPE_STRING, CONF_GLOBAL, 0, 0, NULL}, 




More information about the MPlayer-cvslog mailing list