Browse Source

Merge remote-tracking branch 'qatar/master'

* qatar/master:
  lavf: Remove a now useless parameter to ffurl_register_protocol

Merged-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.2-rc1
Michael Niedermayer 12 years ago
parent
commit
7f019129e1
3 changed files with 3 additions and 11 deletions
  1. +1
    -2
      libavformat/allformats.c
  2. +1
    -6
      libavformat/avio.c
  3. +1
    -3
      libavformat/url.h

+ 1
- 2
libavformat/allformats.c View File

@@ -45,8 +45,7 @@
{ \
extern URLProtocol ff_##x##_protocol; \
if (CONFIG_##X##_PROTOCOL) \
ffurl_register_protocol(&ff_##x##_protocol, \
sizeof(ff_##x##_protocol)); \
ffurl_register_protocol(&ff_##x##_protocol); \
}

void av_register_all(void)


+ 1
- 6
libavformat/avio.c View File

@@ -94,14 +94,9 @@ const char *avio_enum_protocols(void **opaque, int output)
return avio_enum_protocols(opaque, output);
}

int ffurl_register_protocol(URLProtocol *protocol, int size)
int ffurl_register_protocol(URLProtocol *protocol)
{
URLProtocol **p;
if (size < sizeof(URLProtocol)) {
URLProtocol *temp = av_mallocz(sizeof(URLProtocol));
memcpy(temp, protocol, size);
protocol = temp;
}
p = &first_protocol;
while (*p != NULL)
p = &(*p)->next;


+ 1
- 3
libavformat/url.h View File

@@ -226,10 +226,8 @@ int ffurl_shutdown(URLContext *h, int flags);

/**
* Register the URLProtocol protocol.
*
* @param size the size of the URLProtocol struct referenced
*/
int ffurl_register_protocol(URLProtocol *protocol, int size);
int ffurl_register_protocol(URLProtocol *protocol);

/**
* Check if the user has requested to interrup a blocking function


Loading…
Cancel
Save