# HG changeset patch # User iive # Date 1022520646 0 # Node ID e46b3bf16df55156118bc5ba9f885247dfb4e52c # Parent 86162cb34bc9b46b33c2b61d69c6e09e462c2730 added -dumpsrtsub option for SubRip format diff -r 86162cb34bc9 -r e46b3bf16df5 cfg-mplayer.h --- 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}, diff -r 86162cb34bc9 -r e46b3bf16df5 mplayer.c --- 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