changeset 5473:39dae98304af

dvdnav event added, queue size 10->100, added void* event arg type - dvdnav patch by Kees Cook <mplayer@outflux.net>
author arpi
date Wed, 03 Apr 2002 17:58:17 +0000
parents 4bd766a5632b
children a303ae797429
files input/input.c input/input.h
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/input/input.c	Wed Apr 03 17:55:31 2002 +0000
+++ b/input/input.c	Wed Apr 03 17:58:17 2002 +0000
@@ -78,6 +78,7 @@
 
 #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 @@
 #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;
--- a/input/input.h	Wed Apr 03 17:55:31 2002 +0000
+++ b/input/input.h	Wed Apr 03 17:58:17 2002 +0000
@@ -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 @@
   int i;
   float f;
   char* s;
+  void* v;
 } mp_cmd_arg_value_t;
 
 typedef struct mp_cmd_arg {