summaryrefslogtreecommitdiffstats
path: root/input
diff options
context:
space:
mode:
authorattila <attila@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-09-21 14:21:43 +0000
committerattila <attila@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-09-21 14:21:43 +0000
commit943904865ff0af25172c788601a585cf2cc590b4 (patch)
treeb38f15a0b0dbd6a4d0e8f2d02399c98de0734367 /input
parent1526dc6cdf8b226c43600eefc6ce137d73dd1f74 (diff)
downloadmpv-943904865ff0af25172c788601a585cf2cc590b4.tar.bz2
mpv-943904865ff0af25172c788601a585cf2cc590b4.tar.xz
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). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10918 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'input')
-rw-r--r--input/input.c2
-rw-r--r--input/input.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/input/input.c b/input/input.c
index 5e91cf93e8..ce44a1efac 100644
--- a/input/input.c
+++ b/input/input.c
@@ -93,6 +93,7 @@ static mp_cmd_t mp_cmds[] = {
{ 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 @@ static mp_cmd_bind_t def_cmd_binds[] = {
{ { '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
diff --git a/input/input.h b/input/input.h
index b25a9b74c3..f8c0576b84 100644
--- a/input/input.h
+++ b/input/input.h
@@ -51,6 +51,7 @@
#define MP_CMD_TV_SET_SATURATION 47
#define MP_CMD_GET_VO_FULLSCREEN 48
#define MP_CMD_GET_SUB_VISIBILITY 49
+#define MP_CMD_SUB_FORCED_ONLY 50
#define MP_CMD_GUI_EVENTS 5000
#define MP_CMD_GUI_LOADFILE 5001