summaryrefslogtreecommitdiff
path: root/libavformat/avio.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2007-12-12 19:01:58 +0000
committerMichael Niedermayer <michaelni@gmx.at>2007-12-12 19:01:58 +0000
commit84be6e723930e540ee105949af1a7a498164560c (patch)
treed92e440279d6a8b407ba691705fb97f717a15ae9 /libavformat/avio.c
parent562b216307ab1e7a62fe85ef9dcf3c485bc647f7 (diff)
downloadffmpeg-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.c6
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;