From f35ff97f2e572a6b02180b248f929541962ffdd3 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Fri, 8 Apr 2011 07:41:47 +0200 Subject: lavf: use designated initializers for all protocols This is more readable and makes it easier to reorder URLProtocol members. --- libavformat/udp.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'libavformat/udp.c') diff --git a/libavformat/udp.c b/libavformat/udp.c index 07d1775e96..b881ff95fd 100644 --- a/libavformat/udp.c +++ b/libavformat/udp.c @@ -489,11 +489,10 @@ static int udp_close(URLContext *h) } URLProtocol ff_udp_protocol = { - "udp", - udp_open, - udp_read, - udp_write, - NULL, /* seek */ - udp_close, + .name = "udp", + .url_open = udp_open, + .url_read = udp_read, + .url_write = udp_write, + .url_close = udp_close, .url_get_file_handle = udp_get_file_handle, }; -- cgit v1.2.3