From 1d94bbed7dc5ddb213c2e12c551051ebe6742813 Mon Sep 17 00:00:00 2001 From: arpi Date: Thu, 5 Dec 2002 00:11:12 +0000 Subject: slave-mode commands to get movie length & pos patch by Balatoni Denes git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8365 b3059339-0415-0410-9bf9-f77b7e298cf2 --- input/input.c | 2 ++ input/input.h | 2 ++ 2 files changed, 4 insertions(+) (limited to 'input') 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 -- cgit v1.2.3