[MPlayer-cvslog] CVS: main/libmpdemux stream.c, 1.84, 1.85 stream.h, 1.73, 1.74

Nico Sabbi CVS syncmail at mplayerhq.hu
Mon Feb 27 22:06:50 CET 2006


CVS change done by Nico Sabbi CVS

Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv15173

Modified Files:
	stream.c stream.h 
Log Message:
added new stream_control() and new command: STREAM_CTRL_GET_TIME_LENGTH

Index: stream.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/stream.c,v
retrieving revision 1.84
retrieving revision 1.85
diff -u -r1.84 -r1.85
--- stream.c	14 Dec 2005 21:52:41 -0000	1.84
+++ stream.c	27 Feb 2006 21:06:47 -0000	1.85
@@ -347,6 +347,11 @@
   //stream_seek(s,0);
 }
 
+void stream_control(stream_t *s, int cmd, void *arg){
+  if(!s->control) return STREAM_UNSUPORTED;
+  return s->control(s, cmd, arg);
+}
+
 stream_t* new_memory_stream(unsigned char* data,int len){
   stream_t *s=malloc(sizeof(stream_t)+len);
   memset(s,0,sizeof(stream_t));

Index: stream.h
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/stream.h,v
retrieving revision 1.73
retrieving revision 1.74
diff -u -r1.73 -r1.74
--- stream.h	18 Nov 2005 14:39:20 -0000	1.73
+++ stream.h	27 Feb 2006 21:06:47 -0000	1.74
@@ -48,6 +48,7 @@
 #define MAX_STREAM_PROTOCOLS 10
 
 #define STREAM_CTRL_RESET 0
+#define STREAM_CTRL_GET_TIME_LENGTH 1
 
 #ifdef MPLAYER_NETWORK
 #include "network.h"




More information about the MPlayer-cvslog mailing list