summaryrefslogtreecommitdiffstats
path: root/input
diff options
context:
space:
mode:
authorben <ben@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-01-24 19:14:05 +0000
committerben <ben@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-01-24 19:14:05 +0000
commite28bd7c6dee5cb060c08777a6c90d30df4aa6c4b (patch)
tree020ce3adc0eb95c2324092ed5ba03caf01e9885a /input
parent9b72cde1256c262aee64ba2b0c1d4e24c2b4c108 (diff)
downloadmpv-e28bd7c6dee5cb060c08777a6c90d30df4aa6c4b.tar.bz2
mpv-e28bd7c6dee5cb060c08777a6c90d30df4aa6c4b.tar.xz
Add new command to switch between dvdnav titles
Based on parts of dvdnav monster patches from Otvos Attila git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25845 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'input')
-rw-r--r--input/input.c1
-rw-r--r--input/input.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/input/input.c b/input/input.c
index 6073451c8b..de31ccd20e 100644
--- a/input/input.c
+++ b/input/input.c
@@ -120,6 +120,7 @@ static const mp_cmd_t mp_cmds[] = {
{ MP_CMD_GET_META_GENRE, "get_meta_genre", 0, { {-1,{0}} } },
{ MP_CMD_SWITCH_AUDIO, "switch_audio", 0, { { MP_CMD_ARG_INT,{-1} }, {-1,{0}} } },
{ MP_CMD_SWITCH_ANGLE, "switch_angle", 0, { { MP_CMD_ARG_INT,{-1} }, {-1,{0}} } },
+ { MP_CMD_SWITCH_TITLE, "switch_title", 0, { { MP_CMD_ARG_INT,{-1} }, {-1,{0}} } },
#ifdef USE_TV
{ MP_CMD_TV_START_SCAN, "tv_start_scan", 0, { {-1,{0}} }},
{ MP_CMD_TV_STEP_CHANNEL, "tv_step_channel", 1, { { MP_CMD_ARG_INT ,{0}}, {-1,{0}} }},
diff --git a/input/input.h b/input/input.h
index c75f370ca7..1290ecd19d 100644
--- a/input/input.h
+++ b/input/input.h
@@ -108,6 +108,7 @@
#define MP_CMD_SUB_DEMUX 104
#define MP_CMD_SWITCH_ANGLE 105
#define MP_CMD_ASS_USE_MARGINS 106
+#define MP_CMD_SWITCH_TITLE 107
#define MP_CMD_GUI_EVENTS 5000
#define MP_CMD_GUI_LOADFILE 5001