From 536333a0fe2e20bd7314a589635f08a451d1e12e Mon Sep 17 00:00:00 2001 From: Björn Axelsson Date: Sat, 24 Nov 2007 07:09:32 +0000 Subject: Extend URLProtocol with new function pointers and api functions for av_url_read_play(), av_url_read_pause() and av_url_read_seek(). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit patch by: Björn Axelsson, bjorn d axelsson a intinor d se Originally committed as revision 11086 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/avio.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'libavformat/avio.c') diff --git a/libavformat/avio.c b/libavformat/avio.c index 793f8ab1f4..234a99a15d 100644 --- a/libavformat/avio.c +++ b/libavformat/avio.c @@ -187,3 +187,25 @@ void url_set_interrupt_cb(URLInterruptCB *interrupt_cb) interrupt_cb = default_interrupt_cb; url_interrupt_cb = interrupt_cb; } + +int av_url_read_play(URLContext *h) +{ + if (!h->prot->url_read_play) + return AVERROR(ENOSYS); + return h->prot->url_read_play(h); +} + +int av_url_read_pause(URLContext *h) +{ + if (!h->prot->url_read_pause) + return AVERROR(ENOSYS); + return h->prot->url_read_pause(h); +} + +int av_url_read_seek(URLContext *h, + int stream_index, int64_t timestamp, int flags) +{ + if (!h->prot->url_read_seek) + return AVERROR(ENOSYS); + return h->prot->url_read_seek(h, stream_index, timestamp, flags); +} -- cgit v1.2.3