[Mplayer-cvslog] CVS: main mplayer.c,1.621,1.622

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


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

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


Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.621
retrieving revision 1.622
diff -u -r1.621 -r1.622
--- mplayer.c	5 Dec 2002 00:07:58 -0000	1.621
+++ mplayer.c	5 Dec 2002 00:11:11 -0000	1.622
@@ -2350,6 +2350,15 @@
     case MP_CMD_VF_CHANGE_RECTANGLE:
 	set_rectangle(sh_video, cmd->args[0].v.i, cmd->args[1].v.i);
 	break;
+	
+    case MP_CMD_GET_TIME_LENGTH : {
+	mp_msg(MSGT_GLOBAL,MSGL_INFO,"ANS_LENGTH=%ld\n", demuxer_get_time_length(demuxer));
+    } break;
+
+    case MP_CMD_GET_PERCENT_POS : {
+	mp_msg(MSGT_GLOBAL,MSGL_INFO,"ANS_PERCENT_POSITION=%ld\n", demuxer_get_percent_pos(demuxer));
+    } break;
+
 #ifdef USE_DVDNAV
     case MP_CMD_DVDNAV_EVENT: {
       dvdnav_priv_t * dvdnav_priv = (dvdnav_priv_t*)(stream->priv);




More information about the MPlayer-cvslog mailing list