changeset 6209:e46b3bf16df5

added -dumpsrtsub option for SubRip format
author iive
date Mon, 27 May 2002 17:30:46 +0000
parents 86162cb34bc9
children 548129e201a2
files cfg-mplayer.h mplayer.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/cfg-mplayer.h	Mon May 27 17:20:55 2002 +0000
+++ b/cfg-mplayer.h	Mon May 27 17:30:46 2002 +0000
@@ -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}, 
--- a/mplayer.c	Mon May 27 17:20:55 2002 +0000
+++ b/mplayer.c	Mon May 27 17:30:46 2002 +0000
@@ -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