diff options
Diffstat (limited to 'libavformat/tcp.c')
-rw-r--r-- | libavformat/tcp.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/libavformat/tcp.c b/libavformat/tcp.c index f0d1c4556f..57be430c23 100644 --- a/libavformat/tcp.c +++ b/libavformat/tcp.c @@ -202,11 +202,10 @@ static int tcp_get_file_handle(URLContext *h) } URLProtocol ff_tcp_protocol = { - "tcp", - tcp_open, - tcp_read, - tcp_write, - NULL, /* seek */ - tcp_close, + .name = "tcp", + .url_open = tcp_open, + .url_read = tcp_read, + .url_write = tcp_write, + .url_close = tcp_close, .url_get_file_handle = tcp_get_file_handle, }; |