diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2008-08-19 23:44:23 +0000 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2008-08-19 23:44:23 +0000 |
commit | ba99cfc2130025cd63a0ad767a1ee9293c2936f1 (patch) | |
tree | c3582706648e3feef340be6368c849720c6ce3e8 /libavformat/avio.h | |
parent | b76e3424cac3fd8bfb1e9e63477aa1ed1a12a5e4 (diff) | |
download | ffmpeg-ba99cfc2130025cd63a0ad767a1ee9293c2936f1.tar.gz |
Implement url_open_protocol(), which is basiclly the former url_open()
but which opens a URLProtocol instead of a filename. url_open() is
reimplemented to call url_open_protocol(). See discussion on
"url_open_protocol" on ffmpeg-devel.
Originally committed as revision 14857 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/avio.h')
-rw-r--r-- | libavformat/avio.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/avio.h b/libavformat/avio.h index 2d2e26999d..8137cb54dc 100644 --- a/libavformat/avio.h +++ b/libavformat/avio.h @@ -62,6 +62,8 @@ typedef struct URLPollEntry { typedef int URLInterruptCB(void); +int url_open_protocol (URLContext **puc, struct URLProtocol *up, + const char *filename, int flags); int url_open(URLContext **h, const char *filename, int flags); int url_read(URLContext *h, unsigned char *buf, int size); int url_write(URLContext *h, unsigned char *buf, int size); |