[MPlayer-cvslog] r21671 - trunk/stream/stream.h

nicodvb subversion at mplayerhq.hu
Mon Dec 18 21:50:31 CET 2006


Author: nicodvb
Date: Mon Dec 18 21:50:31 2006
New Revision: 21671

Modified:
   trunk/stream/stream.h

Log:
added member and definitions for output streams

Modified: trunk/stream/stream.h
==============================================================================
--- trunk/stream/stream.h	(original)
+++ trunk/stream/stream.h	Mon Dec 18 21:50:31 2006
@@ -101,6 +101,7 @@
   unsigned int buf_pos,buf_len;
   off_t pos,start_pos,end_pos;
   int eof;
+  int mode; //STREAM_READ or STREAM_WRITE
   unsigned int cache_pid;
   void* cache_data;
   void* priv; // used for DVD, TV, RTSP etc
@@ -122,6 +123,7 @@
 #define stream_enable_cache(x,y,z,w) 1
 #endif
 void fixup_network_stream_cache(stream_t *stream);
+int stream_write_buffer(stream_t *s, unsigned char *buf, int len);
 
 inline static int stream_read_char(stream_t *s){
   return (s->buf_pos<s->buf_len)?s->buffer[s->buf_pos++]:
@@ -291,6 +293,7 @@
 stream_t* new_memory_stream(unsigned char* data,int len);
 stream_t* open_stream(char* filename,char** options,int* file_format);
 stream_t* open_stream_full(char* filename,int mode, char** options, int* file_format);
+stream_t* open_output_stream(char* filename,char** options);
 
 extern int dvd_title;
 extern int dvd_chapter;



More information about the MPlayer-cvslog mailing list