diff avio.c @ 2812:173b5cb7efde libavformat

av_*_next() API for libavformat
author michael
date Wed, 12 Dec 2007 19:01:58 +0000
parents 50e2307414ee
children 63fda6ba2173
line wrap: on
line diff
--- a/avio.c	Sun Dec 09 14:39:01 2007 +0000
+++ b/avio.c	Wed Dec 12 19:01:58 2007 +0000
@@ -26,6 +26,12 @@
 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;