summaryrefslogtreecommitdiff
path: root/libavformat/mmst.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/mmst.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/mmst.c')
-rw-r--r--libavformat/mmst.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/libavformat/mmst.c b/libavformat/mmst.c
index 30219dcecb..a3f260939d 100644
--- a/libavformat/mmst.c
+++ b/libavformat/mmst.c
@@ -623,10 +623,8 @@ static int mms_read(URLContext *h, uint8_t *buf, int size)
}
URLProtocol ff_mmst_protocol = {
- "mmst",
- mms_open,
- mms_read,
- NULL, // write
- NULL, // seek
- mms_close,
+ .name = "mmst",
+ .url_open = mms_open,
+ .url_read = mms_read,
+ .url_close = mms_close,
};