summaryrefslogtreecommitdiff
path: root/libavformat/http.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-04-08 07:41:47 +0200
committerAnton Khirnov <anton@khirnov.net>2011-04-08 11:08:26 +0200
commitf35ff97f2e572a6b02180b248f929541962ffdd3 (patch)
tree7a3cdb327cfbc4236e5e4fec53377dbeca663e13 /libavformat/http.c
parenta6aa7a1a14dc12d9d745e5d4a8a7feb38eb1c4da (diff)
lavf: use designated initializers for all protocols
This is more readable and makes it easier to reorder URLProtocol members.
Diffstat (limited to 'libavformat/http.c')
-rw-r--r--libavformat/http.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/libavformat/http.c b/libavformat/http.c
index 8d20527feb..bcfce80bff 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -505,13 +505,13 @@ http_get_file_handle(URLContext *h)
}
URLProtocol ff_http_protocol = {
- "http",
- http_open,
- http_read,
- http_write,
- http_seek,
- http_close,
+ .name = "http",
+ .url_open = http_open,
+ .url_read = http_read,
+ .url_write = http_write,
+ .url_seek = http_seek,
+ .url_close = http_close,
.url_get_file_handle = http_get_file_handle,
- .priv_data_size = sizeof(HTTPContext),
- .priv_data_class = &httpcontext_class,
+ .priv_data_size = sizeof(HTTPContext),
+ .priv_data_class = &httpcontext_class,
};