[Mplayer-cvslog] CVS: main/input input.c,1.60,1.61 input.h,1.24,1.25

Arpi of Ize arpi at mplayerhq.hu
Thu Dec 5 01:11:15 CET 2002


Update of /cvsroot/mplayer/main/input
In directory mail:/var/tmp.root/cvs-serv9156/input

Modified Files:
	input.c input.h 
Log Message:
slave-mode commands to get movie length & pos
patch by Balatoni Denes <pnis at coder.hu>


Index: input.c
===================================================================
RCS file: /cvsroot/mplayer/main/input/input.c,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -r1.60 -r1.61
--- input.c	25 Nov 2002 14:17:15 -0000	1.60
+++ input.c	5 Dec 2002 00:11:12 -0000	1.61
@@ -67,6 +67,8 @@
   { MP_CMD_SUB_POS, "sub_pos", 1, { {MP_CMD_ARG_INT,{0}}, {MP_CMD_ARG_INT,{0}}, {-1,{0}} } },
   { MP_CMD_SUB_VISIBILITY, "sub_visibility", 0, { {-1,{0}} } },
   { MP_CMD_VOBSUB_LANG, "vobsub_lang", 0, { {-1,{0}} } },
+  { MP_CMD_GET_PERCENT_POS, "get_percent_pos", 0, { {-1,{0}} } },
+  { MP_CMD_GET_TIME_LENGTH, "get_time_length", 0, { {-1,{0}} } },
 #ifdef USE_TV
   { MP_CMD_TV_STEP_CHANNEL, "tv_step_channel", 1,  { { MP_CMD_ARG_INT ,{0}}, {-1,{0}} }},
   { MP_CMD_TV_STEP_NORM, "tv_step_norm",0, { {-1,{0}} }  },

Index: input.h
===================================================================
RCS file: /cvsroot/mplayer/main/input/input.h,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- input.h	18 Nov 2002 00:11:56 -0000	1.24
+++ input.h	5 Dec 2002 00:11:12 -0000	1.25
@@ -33,6 +33,8 @@
 #define MP_CMD_VOBSUB_LANG 31
 #define MP_CMD_MENU 32
 #define MP_CMD_SET_MENU 33
+#define MP_CMD_GET_TIME_LENGTH 34
+#define MP_CMD_GET_PERCENT_POS 35
 
 #define MP_CMD_GUI_EVENTS       5000
 #define MP_CMD_GUI_LOADFILE     5001




More information about the MPlayer-cvslog mailing list