1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-27 17:42:17 +00:00

dvdnav event added, queue size 10->100, added void* event arg type - dvdnav patch by Kees Cook <mplayer@outflux.net>

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5474 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2002-04-03 17:58:17 +00:00
parent 6996ef47c5
commit dc9a81d1a9
2 changed files with 6 additions and 1 deletions

View File

@ -78,6 +78,7 @@ static mp_cmd_t mp_cmds[] = {
#ifdef USE_DVDNAV
{ MP_CMD_DVDNAV, "dvdnav", 1, { {MP_CMD_ARG_INT,{0}}, {-1,{0}} } },
{ MP_CMD_DVDNAV_EVENT, "dvdnav_event", 1, { { MP_CMD_ARG_VOID, {0}}, {-1, {0}} } },
#endif
{ 0, NULL, 0, {} }
@ -257,7 +258,7 @@ static mp_cmd_bind_t def_cmd_binds[] = {
#define MP_FD_GOT_CMD (1<<3)
#define MP_FD_NO_SELECT (1<<4)
#define CMD_QUEUE_SIZE 10
#define CMD_QUEUE_SIZE 100
typedef struct mp_input_fd {
int fd;

View File

@ -37,6 +37,8 @@
#define MP_CMD_GUI_FULLSCREEN 5008
#define MP_CMD_GUI_SKINBROWSER 5009
#define MP_CMD_DVDNAV_EVENT 6000
#define MP_CMD_DVDNAV_UP 1
#define MP_CMD_DVDNAV_DOWN 2
#define MP_CMD_DVDNAV_LEFT 3
@ -48,6 +50,7 @@
#define MP_CMD_ARG_INT 0
#define MP_CMD_ARG_FLOAT 1
#define MP_CMD_ARG_STRING 2
#define MP_CMD_ARG_VOID 3
#ifndef MP_CMD_MAX_ARGS
#define MP_CMD_MAX_ARGS 10
@ -77,6 +80,7 @@ typedef union mp_cmd_arg_value {
int i;
float f;
char* s;
void* v;
} mp_cmd_arg_value_t;
typedef struct mp_cmd_arg {