summaryrefslogtreecommitdiffstats
path: root/input
diff options
context:
space:
mode:
authorkmkaplan <kmkaplan@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-10-17 15:41:20 +0000
committerkmkaplan <kmkaplan@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-10-17 15:41:20 +0000
commitf820293e0c1a6ad6855de28a490a91497bb2ebcc (patch)
tree21d7e9e381d4ec7f2d3c3af30cb958905bc0a7d7 /input
parent587b78b278e1d26c9809cdfc26a4aaf1bed2b6fe (diff)
downloadmpv-f820293e0c1a6ad6855de28a490a91497bb2ebcc.tar.bz2
mpv-f820293e0c1a6ad6855de28a490a91497bb2ebcc.tar.xz
Mplayer can switch between subtitles of different languages during
playing by press 'j', by <hephooey@fastmail.fm>. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7780 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 073e6544a9..47671cb46b 100644
--- a/input/input.c
+++ b/input/input.c
@@ -60,6 +60,7 @@ static mp_cmd_t mp_cmds[] = {
{ MP_CMD_FRAMEDROPPING, "frame_drop",0, { { MP_CMD_ARG_INT,{-1} }, {-1,{0}} } },
{ MP_CMD_SUB_POS, "sub_pos", 1, { {MP_CMD_ARG_INT,{0}}, {MP_CMD_ARG_INT,{0}}, {-1,{0}} } },
{ MP_CMD_SUB_VISIBILITY, "sub_visibility", 0, { {-1,{0}} } },
+ { MP_CMD_VOBSUB_LANG, "vobsub_lang", 0, { {-1,{0}} } },
#ifdef USE_TV
{ MP_CMD_TV_STEP_CHANNEL, "tv_step_channel", 1, { { MP_CMD_ARG_INT ,{0}}, {-1,{0}} }},
{ MP_CMD_TV_STEP_NORM, "tv_step_norm",0, { {-1,{0}} } },
@@ -223,6 +224,7 @@ static mp_cmd_bind_t def_cmd_binds[] = {
{ { 'r', 0 }, "sub_pos -1" },
{ { 't', 0 }, "sub_pos +1" },
{ { 'v', 0 }, "sub_visibility" },
+ { { 'j', 0 }, "vobsub_lang" },
#ifdef USE_TV
{ { 'h', 0 }, "tv_step_channel 1" },
{ { 'k', 0 }, "tv_step_channel -1" },
diff --git a/input/input.h b/input/input.h
index 98b3cc0347..9cff8ca7b4 100644
--- a/input/input.h
+++ b/input/input.h
@@ -30,6 +30,7 @@
#define MP_CMD_VF_CHANGE_RECTANGLE 28
#define MP_CMD_GAMMA 29
#define MP_CMD_SUB_VISIBILITY 30
+#define MP_CMD_VOBSUB_LANG 31
#define MP_CMD_GUI_EVENTS 5000
#define MP_CMD_GUI_LOADFILE 5001