summaryrefslogtreecommitdiff
path: root/libavformat/tcp.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/tcp.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/tcp.c')
-rw-r--r--libavformat/tcp.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/libavformat/tcp.c b/libavformat/tcp.c
index 8e380ac374..0cb3ae3262 100644
--- a/libavformat/tcp.c
+++ b/libavformat/tcp.c
@@ -195,11 +195,10 @@ static int tcp_get_file_handle(URLContext *h)
}
URLProtocol ff_tcp_protocol = {
- "tcp",
- tcp_open,
- tcp_read,
- tcp_write,
- NULL, /* seek */
- tcp_close,
+ .name = "tcp",
+ .url_open = tcp_open,
+ .url_read = tcp_read,
+ .url_write = tcp_write,
+ .url_close = tcp_close,
.url_get_file_handle = tcp_get_file_handle,
};