diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2007-12-12 19:01:58 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2007-12-12 19:01:58 +0000 |
commit | 84be6e723930e540ee105949af1a7a498164560c (patch) | |
tree | d92e440279d6a8b407ba691705fb97f717a15ae9 /libavformat/avio.c | |
parent | 562b216307ab1e7a62fe85ef9dcf3c485bc647f7 (diff) | |
download | ffmpeg-84be6e723930e540ee105949af1a7a498164560c.tar.gz |
av_*_next() API for libavformat
Originally committed as revision 11206 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/avio.c')
-rw-r--r-- | libavformat/avio.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavformat/avio.c b/libavformat/avio.c index 234a99a15d..3447889988 100644 --- a/libavformat/avio.c +++ b/libavformat/avio.c @@ -26,6 +26,12 @@ static int default_interrupt_cb(void); URLProtocol *first_protocol = NULL; URLInterruptCB *url_interrupt_cb = default_interrupt_cb; +URLProtocol *av_protocol_next(URLProtocol *p) +{ + if(p) return p->next; + else return first_protocol; +} + int register_protocol(URLProtocol *protocol) { URLProtocol **p; |