diff options
author | nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-12-18 20:50:31 +0000 |
---|---|---|
committer | nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-12-18 20:50:31 +0000 |
commit | 8bd29fd6c5a80372d21694e9c6b56453249aff72 (patch) | |
tree | d91454e355311333747f66494c762947b830929e | |
parent | d46bda5fe3bb18e6a251d5e9e8adb3987482623e (diff) | |
download | mpv-8bd29fd6c5a80372d21694e9c6b56453249aff72.tar.bz2 mpv-8bd29fd6c5a80372d21694e9c6b56453249aff72.tar.xz |
added member and definitions for output streams
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21671 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | stream/stream.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/stream/stream.h b/stream/stream.h index 3ea8d5f375..5df4a03ebf 100644 --- a/stream/stream.h +++ b/stream/stream.h @@ -101,6 +101,7 @@ typedef struct stream_st { 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 @@ int cache_stream_seek_long(stream_t *s,off_t pos); #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 @@ void free_stream(stream_t *s); 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; |