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/file.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'libavformat/file.c') diff --git a/libavformat/file.c b/libavformat/file.c index 729061a4e5..3293a5369b 100644 --- a/libavformat/file.c +++ b/libavformat/file.c @@ -95,12 +95,12 @@ static int file_close(URLContext *h) } URLProtocol ff_file_protocol = { - "file", - file_open, - file_read, - file_write, - file_seek, - file_close, + .name = "file", + .url_open = file_open, + .url_read = file_read, + .url_write = file_write, + .url_seek = file_seek, + .url_close = file_close, .url_get_file_handle = file_get_handle, }; @@ -131,10 +131,10 @@ static int pipe_open(URLContext *h, const char *filename, int flags) } URLProtocol ff_pipe_protocol = { - "pipe", - pipe_open, - file_read, - file_write, + .name = "pipe", + .url_open = pipe_open, + .url_read = file_read, + .url_write = file_write, .url_get_file_handle = file_get_handle, }; -- cgit v1.2.3