diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-04-08 07:41:47 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-04-08 11:08:26 +0200 |
commit | f35ff97f2e572a6b02180b248f929541962ffdd3 (patch) | |
tree | 7a3cdb327cfbc4236e5e4fec53377dbeca663e13 /libavformat/rtmpproto.c | |
parent | a6aa7a1a14dc12d9d745e5d4a8a7feb38eb1c4da (diff) | |
download | ffmpeg-f35ff97f2e572a6b02180b248f929541962ffdd3.tar.gz |
lavf: use designated initializers for all protocols
This is more readable and makes it easier to reorder URLProtocol
members.
Diffstat (limited to 'libavformat/rtmpproto.c')
-rw-r--r-- | libavformat/rtmpproto.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c index f1519845f1..9fc5196b2c 100644 --- a/libavformat/rtmpproto.c +++ b/libavformat/rtmpproto.c @@ -991,10 +991,9 @@ static int rtmp_write(URLContext *s, const uint8_t *buf, int size) } URLProtocol ff_rtmp_protocol = { - "rtmp", - rtmp_open, - rtmp_read, - rtmp_write, - NULL, /* seek */ - rtmp_close, + .name = "rtmp", + .url_open = rtmp_open, + .url_read = rtmp_read, + .url_write = rtmp_write, + .url_close = rtmp_close, }; |