summaryrefslogtreecommitdiffstats
path: root/input
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-12-05 00:11:12 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-12-05 00:11:12 +0000
commit1d94bbed7dc5ddb213c2e12c551051ebe6742813 (patch)
treee7f62995a7b9ee74021caf507eda9c3bd5c20adb /input
parent919f3710b113c284aef73eeddff53c700c5fc6dc (diff)
downloadmpv-1d94bbed7dc5ddb213c2e12c551051ebe6742813.tar.bz2
mpv-1d94bbed7dc5ddb213c2e12c551051ebe6742813.tar.xz
slave-mode commands to get movie length & pos
patch by Balatoni Denes <pnis@coder.hu> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8365 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'input')
-rw-r--r--input/input.c2
-rw-r--r--input/input.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/input/input.c b/input/input.c
index d118ddf433..da633146eb 100644
--- a/input/input.c
+++ b/input/input.c
@@ -67,6 +67,8 @@ static mp_cmd_t mp_cmds[] = {
{ 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}} } },
+ { MP_CMD_GET_PERCENT_POS, "get_percent_pos", 0, { {-1,{0}} } },
+ { MP_CMD_GET_TIME_LENGTH, "get_time_length", 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}} } },
diff --git a/input/input.h b/input/input.h
index 76e826f3a7..20f22cadff 100644
--- a/input/input.h
+++ b/input/input.h
@@ -33,6 +33,8 @@
#define MP_CMD_VOBSUB_LANG 31
#define MP_CMD_MENU 32
#define MP_CMD_SET_MENU 33
+#define MP_CMD_GET_TIME_LENGTH 34
+#define MP_CMD_GET_PERCENT_POS 35
#define MP_CMD_GUI_EVENTS 5000
#define MP_CMD_GUI_LOADFILE 5001