Mercurial > mplayer.hg
diff input/input.c @ 10917:d45870f67728
Forced subtitles patch by Arne Driescher <driescher@mpi-magdeburg.mpg.de>
For a given subtitle language you can now chose to display
only the forced subtitles. Defaut is set to "show all subtitles"
so that current mplayer behaviour is not changed.
For DVD:
Use -forced_subs_only additionally to e.g. -slang en
if you are only interested in the forced subtitles.
For VobSub:
The idx file is now parsed for the "forced subs: ON/OFF" tag
and used according to its settings.
Key:
You can toggle the display of forced subtitles by pressing
"F" (upper case letter).
| author | attila |
|---|---|
| date | Sun, 21 Sep 2003 14:21:43 +0000 |
| parents | bbdaa93c469e |
| children | 85e503ddf65f |
line wrap: on
line diff
--- a/input/input.c Sun Sep 21 13:20:06 2003 +0000 +++ b/input/input.c Sun Sep 21 14:21:43 2003 +0000 @@ -93,6 +93,7 @@ { MP_CMD_TV_SET_HUE, "tv_set_hue", 1, { { MP_CMD_ARG_INT ,{0}}, {-1,{0}} }}, { MP_CMD_TV_SET_SATURATION, "tv_set_saturation", 1, { { MP_CMD_ARG_INT ,{0}}, {-1,{0}} }}, #endif + { MP_CMD_SUB_FORCED_ONLY, "forced_subs_only", 0, { {-1,{0}} } }, #ifdef HAS_DVBIN_SUPPORT { MP_CMD_DVB_SET_CHANNEL, "dvb_set_channel", 1, { { MP_CMD_ARG_INT, {0}}, {-1,{0}} }}, #endif @@ -300,6 +301,7 @@ { { 'a', 0 }, "sub_alignment" }, { { 'v', 0 }, "sub_visibility" }, { { 'j', 0 }, "vobsub_lang" }, + { { 'F', 0 }, "forced_subs_only" }, #ifdef USE_EDL { { 'i', 0 }, "edl_mark" }, #endif
