Mercurial > mplayer.hg
comparison mplayer.c @ 16740:e168c0704cfc
change to switch/case for dumpsub
author | ods15 |
---|---|
date | Wed, 12 Oct 2005 14:37:03 +0000 |
parents | 8ba196af5609 |
children | 2d8ace98bb6d |
comparison
equal
deleted
inserted
replaced
16739:e91f944f6ed9 | 16740:e168c0704cfc |
---|---|
3625 subdata = set_of_subtitles[set_of_sub_pos]; | 3625 subdata = set_of_subtitles[set_of_sub_pos]; |
3626 if (!global_sub_quiet_osd_hack) osd_show_sub_changed = sh_video->fps; | 3626 if (!global_sub_quiet_osd_hack) osd_show_sub_changed = sh_video->fps; |
3627 vo_osd_changed(OSDTYPE_SUBTITLE); | 3627 vo_osd_changed(OSDTYPE_SUBTITLE); |
3628 | 3628 |
3629 // FIXME: is this the correct place for these? | 3629 // FIXME: is this the correct place for these? |
3630 if(stream_dump_type==3) list_sub_file(subdata); | 3630 switch (stream_dump_type) { |
3631 if(stream_dump_type==4) dump_mpsub(subdata, sh_video->fps); | 3631 case 3: list_sub_file(subdata); break; |
3632 if(stream_dump_type==6) dump_srt(subdata, sh_video->fps); | 3632 case 4: dump_mpsub(subdata, sh_video->fps); break; |
3633 if(stream_dump_type==7) dump_microdvd(subdata, sh_video->fps); | 3633 case 6: dump_srt(subdata, sh_video->fps); break; |
3634 if(stream_dump_type==8) dump_jacosub(subdata, sh_video->fps); | 3634 case 7: dump_microdvd(subdata, sh_video->fps); break; |
3635 if(stream_dump_type==9) dump_sami(subdata, sh_video->fps); | 3635 case 8: dump_jacosub(subdata, sh_video->fps); break; |
3636 case 9: dump_sami(subdata, sh_video->fps); break; | |
3637 } | |
3636 #endif | 3638 #endif |
3637 } else if (source == SUB_SOURCE_DEMUX) { | 3639 } else if (source == SUB_SOURCE_DEMUX) { |
3638 dvdsub_id = global_sub_pos - global_sub_indices[SUB_SOURCE_DEMUX]; | 3640 dvdsub_id = global_sub_pos - global_sub_indices[SUB_SOURCE_DEMUX]; |
3639 if (d_dvdsub) { | 3641 if (d_dvdsub) { |
3640 #ifdef USE_DVDREAD | 3642 #ifdef USE_DVDREAD |