From 543504363f0448ae4df2bc42df49a724256a4b73 Mon Sep 17 00:00:00 2001 From: cehoyos Date: Fri, 9 Apr 2010 19:20:52 +0000 Subject: Add osd_show_progression: Show progress bar and elapsed/total time. Patch by Hugo Chargois, hugo D chargois A free fr git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31028 b3059339-0415-0410-9bf9-f77b7e298cf2 --- input/input.c | 2 ++ input/input.h | 1 + 2 files changed, 3 insertions(+) (limited to 'input') diff --git a/input/input.c b/input/input.c index d9706804b7..7e679119ea 100644 --- a/input/input.c +++ b/input/input.c @@ -94,6 +94,7 @@ static const mp_cmd_t mp_cmds[] = { { MP_CMD_OSD, "osd",0, { {MP_CMD_ARG_INT,{-1}}, {-1,{0}} } }, { MP_CMD_OSD_SHOW_TEXT, "osd_show_text", 1, { {MP_CMD_ARG_STRING, {0}}, {MP_CMD_ARG_INT,{-1}}, {MP_CMD_ARG_INT,{0}}, {-1,{0}} } }, { MP_CMD_OSD_SHOW_PROPERTY_TEXT, "osd_show_property_text",1, { {MP_CMD_ARG_STRING, {0}}, {MP_CMD_ARG_INT,{-1}}, {MP_CMD_ARG_INT,{0}}, {-1,{0}} } }, + { MP_CMD_OSD_SHOW_PROGRESSION, "osd_show_progression", 0, { {-1,{0}} } }, { MP_CMD_VOLUME, "volume", 1, { { MP_CMD_ARG_FLOAT,{0} }, {MP_CMD_ARG_INT,{0}}, {-1,{0}} } }, { MP_CMD_BALANCE, "balance", 1, { { MP_CMD_ARG_FLOAT,{0} }, {MP_CMD_ARG_INT,{0}}, {-1,{0}} } }, { MP_CMD_MIXER_USEMASTER, "use_master", 0, { {-1,{0}} } }, @@ -400,6 +401,7 @@ static const mp_cmd_bind_t def_cmd_binds[] = { { { KEY_DEL, 0 }, "alt_src_step -1" }, { { 'o', 0 }, "osd" }, { { 'I', 0 }, "osd_show_property_text \"${filename}\"" }, + { { 'P', 0 }, "osd_show_progression" }, { { 'z', 0 }, "sub_delay -0.1" }, { { 'x', 0 }, "sub_delay +0.1" }, { { 'g', 0 }, "sub_step -1" }, diff --git a/input/input.h b/input/input.h index 29e801d374..2df3f03932 100644 --- a/input/input.h +++ b/input/input.h @@ -94,6 +94,7 @@ typedef enum { MP_CMD_SET_PROPERTY, MP_CMD_GET_PROPERTY, MP_CMD_OSD_SHOW_PROPERTY_TEXT, + MP_CMD_OSD_SHOW_PROGRESSION, MP_CMD_SEEK_CHAPTER, MP_CMD_FILE_FILTER, MP_CMD_GET_FILENAME, -- cgit v1.2.3 From 40ac0d3109c4baeb10a04b503c6e6213c75d7779 Mon Sep 17 00:00:00 2001 From: cehoyos Date: Sun, 11 Apr 2010 18:59:19 +0000 Subject: Add slave commands for loading and unloading audio filters at runtime. Patch by Jehan Hysseo, hysseo zemarmot net git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31030 b3059339-0415-0410-9bf9-f77b7e298cf2 --- input/input.c | 5 +++++ input/input.h | 7 +++++++ 2 files changed, 12 insertions(+) (limited to 'input') diff --git a/input/input.c b/input/input.c index 7e679119ea..0bcd5752af 100644 --- a/input/input.c +++ b/input/input.c @@ -209,6 +209,11 @@ static const mp_cmd_t mp_cmds[] = { { MP_CMD_SEEK_CHAPTER, "seek_chapter", 1, { {MP_CMD_ARG_INT,{0}}, {MP_CMD_ARG_INT,{0}}, {-1,{0}} } }, { MP_CMD_SET_MOUSE_POS, "set_mouse_pos", 2, { {MP_CMD_ARG_INT,{0}}, {MP_CMD_ARG_INT,{0}}, {-1,{0}} } }, + { MP_CMD_AF_SWITCH, "af_switch", 1, { {MP_CMD_ARG_STRING, {0}}, {-1,{0}} } }, + { MP_CMD_AF_ADD, "af_add", 1, { {MP_CMD_ARG_STRING, {0}}, {-1,{0}} } }, + { MP_CMD_AF_DEL, "af_del", 1, { {MP_CMD_ARG_STRING, {0}}, {-1,{0}} } }, + { MP_CMD_AF_CLR, "af_clr", 0, { {-1,{0}} } }, + { 0, NULL, 0, {} } }; diff --git a/input/input.h b/input/input.h index 2df3f03932..69c6d4b959 100644 --- a/input/input.h +++ b/input/input.h @@ -162,6 +162,13 @@ typedef enum { MP_CMD_CHELP = 7000, MP_CMD_CEXIT, MP_CMD_CHIDE, + + /// Audio Filter commands + MP_CMD_AF_SWITCH, + MP_CMD_AF_ADD, + MP_CMD_AF_DEL, + MP_CMD_AF_CLR, + } mp_command_type; // The arg types -- cgit v1.2.3