From 2f376d1b39913e8ff4c4499e7cf7148ec331d4db Mon Sep 17 00:00:00 2001 From: reimar Date: Thu, 9 Jun 2005 20:13:53 +0000 Subject: Add sub_load and sub_remove slave commands. Patch by kiriuja [mplayer-patches at en-directo dot net] git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15707 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 3a9456566d..04b7bff576 100644 --- a/input/input.c +++ b/input/input.c @@ -77,6 +77,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_ALIGNMENT, "sub_alignment",0, { {MP_CMD_ARG_INT,{-1}}, {-1,{0}} } }, { MP_CMD_SUB_VISIBILITY, "sub_visibility", 0, { {-1,{0}} } }, + { MP_CMD_SUB_LOAD, "sub_load", 1, { {MP_CMD_ARG_STRING,{0}}, {-1,{0}} } }, + { MP_CMD_SUB_REMOVE, "sub_remove", 0, { {MP_CMD_ARG_INT,{-1}}, {-1,{0}} } }, { MP_CMD_SUB_SELECT, "vobsub_lang", 0, { { MP_CMD_ARG_INT,{-2} }, {-1,{0}} } }, // for compatibility { MP_CMD_SUB_SELECT, "sub_select", 0, { { MP_CMD_ARG_INT,{-2} }, {-1,{0}} } }, { MP_CMD_SUB_LOG, "sub_log", 0, { {-1,{0}} } }, diff --git a/input/input.h b/input/input.h index 72f3ff07f6..43ea58d69e 100644 --- a/input/input.h +++ b/input/input.h @@ -65,6 +65,8 @@ #define MP_CMD_SUB_LOG 61 #define MP_CMD_SWITCH_AUDIO 62 #define MP_CMD_GET_TIME_POS 63 +#define MP_CMD_SUB_LOAD 64 +#define MP_CMD_SUB_REMOVE 65 #define MP_CMD_GUI_EVENTS 5000 #define MP_CMD_GUI_LOADFILE 5001 -- cgit v1.2.3