diff options
author | Martin Storsjö <martin@martin.st> | 2010-03-05 22:38:48 +0000 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2010-03-05 22:38:48 +0000 |
commit | 814c56413dc1656d16bda75614e7b5c4fbbbcb9a (patch) | |
tree | a2f74b38603f8cab77c5eda5b0bb6f7e21b8f621 /libavformat/udp.c | |
parent | 57b5555c91a9792e3ac99102b3d1a5c44b45fdd9 (diff) | |
download | ffmpeg-814c56413dc1656d16bda75614e7b5c4fbbbcb9a.tar.gz |
Don't explicitly initialize networking in the tcp and udp protocols
Networking is always initialized when opening protocols.
Originally committed as revision 22227 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/udp.c')
-rw-r--r-- | libavformat/udp.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/libavformat/udp.c b/libavformat/udp.c index c548014af1..1b09457a46 100644 --- a/libavformat/udp.c +++ b/libavformat/udp.c @@ -320,9 +320,6 @@ static int udp_open(URLContext *h, const char *uri, int flags) 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 @@ static int udp_close(URLContext *h) 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; } |