On Mon, Apr 04, 2011 at 03:06:48PM +, Ronald S. Bultje wrote:
> Hi,
>
> On Mon, Apr 4, 2011 at 11:01 AM, Anton Khirnov wrote:
> > Lesson learned: don't program while half-asleep.
> >
> > And now something that actually works :)
> [..]
> > +const char *avio_enum_protocols(void **opaque)
> > +{
Hi,
On Mon, Apr 4, 2011 at 11:01 AM, Anton Khirnov wrote:
> Lesson learned: don't program while half-asleep.
>
> And now something that actually works :)
[..]
> +const char *avio_enum_protocols(void **opaque)
> +{
> +URLProtocol **p = opaque;
> +*p = av_protocol_next(*p);
> +return *p
Lesson learned: don't program while half-asleep.
And now something that actually works :)
--
Anton Khirnov
From debd62be08d0140832a849490e74b6273c850391 Mon Sep 17 00:00:00 2001
From: Anton Khirnov
Date: Mon, 4 Apr 2011 08:18:54 +0200
Subject: [PATCH] avio: add a function for iterating though
---
libavformat/avio.c |6 ++
libavformat/avio.h | 11 +++
2 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/libavformat/avio.c b/libavformat/avio.c
index 24cec8f..bee878c 100644
--- a/libavformat/avio.c
+++ b/libavformat/avio.c
@@ -57,6 +57,12 @@ URLProtocol *av_pr