Commit 4521645b authored by Mans Rullgard's avatar Mans Rullgard

avio: fix pointer type mismatches in avio_enum_protocols()

Signed-off-by: 's avatarMans Rullgard <mans@mansr.com>
parent cc64ec57
...@@ -85,11 +85,11 @@ const AVClass ffurl_context_class = { ...@@ -85,11 +85,11 @@ const AVClass ffurl_context_class = {
const char *avio_enum_protocols(void **opaque, int output) const char *avio_enum_protocols(void **opaque, int output)
{ {
URLProtocol **p = opaque; URLProtocol *p;
*p = ffurl_protocol_next(*p); *opaque = ffurl_protocol_next(*opaque);
if (!*p) return NULL; if (!(p = *opaque)) return NULL;
if ((output && (*p)->url_write) || (!output && (*p)->url_read)) if ((output && p->url_write) || (!output && p->url_read))
return (*p)->name; return p->name;
return avio_enum_protocols(opaque, output); return avio_enum_protocols(opaque, output);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment