diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-04-08 07:41:47 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-04-08 11:08:26 +0200 |
commit | f35ff97f2e572a6b02180b248f929541962ffdd3 (patch) | |
tree | 7a3cdb327cfbc4236e5e4fec53377dbeca663e13 /libavformat/applehttpproto.c | |
parent | a6aa7a1a14dc12d9d745e5d4a8a7feb38eb1c4da (diff) | |
download | ffmpeg-f35ff97f2e572a6b02180b248f929541962ffdd3.tar.gz |
lavf: use designated initializers for all protocols
This is more readable and makes it easier to reorder URLProtocol
members.
Diffstat (limited to 'libavformat/applehttpproto.c')
-rw-r--r-- | libavformat/applehttpproto.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/libavformat/applehttpproto.c b/libavformat/applehttpproto.c index 52645f7494..8842bd4dcf 100644 --- a/libavformat/applehttpproto.c +++ b/libavformat/applehttpproto.c @@ -298,11 +298,9 @@ static int applehttp_close(URLContext *h) } URLProtocol ff_applehttp_protocol = { - "applehttp", - applehttp_open, - applehttp_read, - NULL, /* write */ - NULL, /* seek */ - applehttp_close, - .flags = URL_PROTOCOL_FLAG_NESTED_SCHEME, + .name = "applehttp", + .url_open = applehttp_open, + .url_read = applehttp_read, + .url_close = applehttp_close, + .flags = URL_PROTOCOL_FLAG_NESTED_SCHEME, }; |