diff options
author | Björn Axelsson <gecko@acc.umu.se> | 2007-11-24 07:09:32 +0000 |
---|---|---|
committer | Andreas Öman <andreas@lonelycoder.com> | 2007-11-24 07:09:32 +0000 |
commit | 536333a0fe2e20bd7314a589635f08a451d1e12e (patch) | |
tree | b83c79a06a36aa07bce93ab1be029ead9a9114e9 /libavformat/avio.c | |
parent | 23c0634c784cf351ae692eb2e54cf0eb167ad02e (diff) | |
download | ffmpeg-536333a0fe2e20bd7314a589635f08a451d1e12e.tar.gz |
Extend URLProtocol with new function pointers and api functions for
av_url_read_play(), av_url_read_pause() and av_url_read_seek().
patch by: Björn Axelsson, bjorn d axelsson a intinor d se
Originally committed as revision 11086 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/avio.c')
-rw-r--r-- | libavformat/avio.c | 22 |
1 files changed, 22 insertions, 0 deletions
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); +} |