lavf: use designated initializers for all protocols

This is more readable and makes it easier to reorder URLProtocol
members.
This commit is contained in:
Anton Khirnov
2011-04-08 07:41:47 +02:00
parent a6aa7a1a14
commit f35ff97f2e
11 changed files with 97 additions and 117 deletions

View File

@@ -121,10 +121,9 @@ static int gopher_read(URLContext *h, uint8_t *buf, int size)
URLProtocol ff_gopher_protocol = {
"gopher",
gopher_open,
gopher_read,
gopher_write,
NULL, /*seek*/
gopher_close,
.name = "gopher",
.url_open = gopher_open,
.url_read = gopher_read,
.url_write = gopher_write,
.url_close = gopher_close,
};