summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorods15 <ods15@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-10-12 14:37:03 +0000
committerods15 <ods15@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-10-12 14:37:03 +0000
commit1e85a471ab41ae7cdbd7251fbe5d0acae266bf0d (patch)
tree53e36729614d2709aa37f74885ebbc8957d3196d /mplayer.c
parent4465aa5eb28b861f266f8e37ec0f6f64a39d7c4f (diff)
downloadmpv-1e85a471ab41ae7cdbd7251fbe5d0acae266bf0d.tar.bz2
mpv-1e85a471ab41ae7cdbd7251fbe5d0acae266bf0d.tar.xz
change to switch/case for dumpsub
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16741 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/mplayer.c b/mplayer.c
index 046cdc3039..9d89e8184c 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -3627,12 +3627,14 @@ if (stream->type==STREAMTYPE_DVDNAV && dvd_nav_still)
vo_osd_changed(OSDTYPE_SUBTITLE);
// FIXME: is this the correct place for these?
- if(stream_dump_type==3) list_sub_file(subdata);
- if(stream_dump_type==4) dump_mpsub(subdata, sh_video->fps);
- if(stream_dump_type==6) dump_srt(subdata, sh_video->fps);
- if(stream_dump_type==7) dump_microdvd(subdata, sh_video->fps);
- if(stream_dump_type==8) dump_jacosub(subdata, sh_video->fps);
- if(stream_dump_type==9) dump_sami(subdata, sh_video->fps);
+ switch (stream_dump_type) {
+ case 3: list_sub_file(subdata); break;
+ case 4: dump_mpsub(subdata, sh_video->fps); break;
+ case 6: dump_srt(subdata, sh_video->fps); break;
+ case 7: dump_microdvd(subdata, sh_video->fps); break;
+ case 8: dump_jacosub(subdata, sh_video->fps); break;
+ case 9: dump_sami(subdata, sh_video->fps); break;
+ }
#endif
} else if (source == SUB_SOURCE_DEMUX) {
dvdsub_id = global_sub_pos - global_sub_indices[SUB_SOURCE_DEMUX];