Revision f8270bbf libavformat/avio.c

View differences:

libavformat/avio.c
57 57
    else  return first_protocol;
58 58
}
59 59

  
60
const char *avio_enum_protocols(void **opaque, int output)
61
{
62
    URLProtocol **p = opaque;
63
    *p = *p ? (*p)->next : first_protocol;
64
    if (!*p) return NULL;
65
    if ((output && (*p)->url_write) || (!output && (*p)->url_read))
66
        return (*p)->name;
67
    return avio_enum_protocols(opaque, output);
68
}
69

  
60 70
int ffurl_register_protocol(URLProtocol *protocol, int size)
61 71
{
62 72
    URLProtocol **p;

Also available in: Unified diff