Mercurial > libavformat.hg
diff udp.c @ 5757:b1a108ca71c5 libavformat
Don't explicitly initialize networking in the tcp and udp protocols
Networking is always initialized when opening protocols.
author | mstorsjo |
---|---|
date | Fri, 05 Mar 2010 22:38:48 +0000 |
parents | c5a662ed3ab5 |
children | 7a123cc24a81 |
line wrap: on
line diff
--- a/udp.c Fri Mar 05 22:35:21 2010 +0000 +++ b/udp.c Fri Mar 05 22:38:48 2010 +0000 @@ -320,9 +320,6 @@ is_output = (flags & URL_WRONLY); - if(!ff_network_init()) - return AVERROR(EIO); - s = av_mallocz(sizeof(UDPContext)); if (!s) return AVERROR(ENOMEM); @@ -482,7 +479,6 @@ if (s->is_multicast && !(h->flags & URL_WRONLY)) udp_leave_multicast_group(s->udp_fd, (struct sockaddr *)&s->dest_addr); closesocket(s->udp_fd); - ff_network_close(); av_free(s); return 0; }