summaryrefslogtreecommitdiff
path: root/libavformat/file.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/file.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/file.c')
-rw-r--r--libavformat/file.c20
1 files changed, 10 insertions, 10 deletions
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,
};