diff options
author | bertrand <bertrand@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-01-08 07:31:29 +0000 |
---|---|---|
committer | bertrand <bertrand@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-01-08 07:31:29 +0000 |
commit | 61b0de3564ce037dd22e2e02cb6a64e5e2ead9bc (patch) | |
tree | 1335c19f140c48468f40a6bdee05b0c418d1b446 /libmpdemux/network.h | |
parent | 1f630b5ebd8675efde515f6d2353bb6732f902eb (diff) | |
download | mpv-61b0de3564ce037dd22e2e02cb6a64e5e2ead9bc.tar.bz2 mpv-61b0de3564ce037dd22e2e02cb6a64e5e2ead9bc.tar.xz |
Kept the HTTP connection open after autodetect, so
we don't need to reopen and request a second time.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4047 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/network.h')
-rw-r--r-- | libmpdemux/network.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libmpdemux/network.h b/libmpdemux/network.h index 8353aac365..02615e7000 100644 --- a/libmpdemux/network.h +++ b/libmpdemux/network.h @@ -16,6 +16,7 @@ #include <arpa/inet.h> #include "url.h" +#include "stream.h" #define BUFFER_SIZE 2048 @@ -37,6 +38,13 @@ typedef struct streaming_control { void *data; } streaming_ctrl_t; +streaming_ctrl_t *streaming_ctrl_new(); +void streaming_ctrl_free( streaming_ctrl_t *streaming_ctrl ); + +int autodetectProtocol( streaming_ctrl_t *streaming_ctrl, int *fd_out, int *file_format ); + +//int streaming_start( stream_t *stream, int demuxer_type ); + int streaming_bufferize( streaming_ctrl_t *streaming_ctrl, char *buffer, int size); int nop_streaming_read( int fd, char *buffer, int size, streaming_ctrl_t *stream_ctrl ); |