summaryrefslogtreecommitdiffstats
path: root/input
diff options
context:
space:
mode:
authoreugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-08-06 18:55:34 +0000
committereugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-08-06 18:55:34 +0000
commit1de0c3327d10a43ff3532be7e92c3160c52d55c8 (patch)
tree3530f1fc5b4e87782fbf839dc863b616c779a052 /input
parentd6f16f68897cf2fe11f9ac02fe5ba1dc58c4842e (diff)
downloadmpv-1de0c3327d10a43ff3532be7e92c3160c52d55c8.tar.bz2
mpv-1de0c3327d10a43ff3532be7e92c3160c52d55c8.tar.xz
Add matroska chapter seeking capability.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19348 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'input')
-rw-r--r--input/input.c5
-rw-r--r--input/input.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/input/input.c b/input/input.c
index 2da5353bfa..5f331310ab 100644
--- a/input/input.c
+++ b/input/input.c
@@ -146,6 +146,8 @@ static mp_cmd_t mp_cmds[] = {
{ MP_CMD_SET_PROPERTY, "set_property", 2, { {MP_CMD_ARG_STRING, {0}}, {MP_CMD_ARG_STRING, {0}}, {-1,{0}} } },
{ MP_CMD_GET_PROPERTY, "get_property", 1, { {MP_CMD_ARG_STRING, {0}}, {-1,{0}} } },
+ { MP_CMD_SEEK_CHAPTER, "seek_chapter", 1, { {MP_CMD_ARG_INT,{0}}, {MP_CMD_ARG_INT,{0}}, {-1,{0}} } },
+
{ 0, NULL, 0, {} }
};
@@ -392,6 +394,9 @@ static mp_cmd_bind_t def_cmd_binds[] = {
{ { KEY_MUTE, 0 }, "mute" },
{ { KEY_CLOSE_WIN, 0 }, "quit" },
+
+ { { '!', 0 }, "seek_chapter -1" },
+ { { '@', 0 }, "seek_chapter 1" },
{ { 0 }, NULL }
};
diff --git a/input/input.h b/input/input.h
index 5fe9a88121..4d83d1b113 100644
--- a/input/input.h
+++ b/input/input.h
@@ -70,6 +70,7 @@
#define MP_CMD_SET_PROPERTY 68
#define MP_CMD_GET_PROPERTY 69
#define MP_CMD_OSD_SHOW_PROPERTY_TEXT 70
+#define MP_CMD_SEEK_CHAPTER 71
#define MP_CMD_GUI_EVENTS 5000
#define MP_CMD_GUI_LOADFILE 5001