aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/tcp.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2010-03-05 22:38:48 +0000
committerMartin Storsjö <martin@martin.st>2010-03-05 22:38:48 +0000
commit814c56413dc1656d16bda75614e7b5c4fbbbcb9a (patch)
treea2f74b38603f8cab77c5eda5b0bb6f7e21b8f621 /libavformat/tcp.c
parent57b5555c91a9792e3ac99102b3d1a5c44b45fdd9 (diff)
downloadffmpeg-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/tcp.c')
-rw-r--r--libavformat/tcp.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/libavformat/tcp.c b/libavformat/tcp.c
index a8cf80fbff..0f097d0dd2 100644
--- a/libavformat/tcp.c
+++ b/libavformat/tcp.c
@@ -44,9 +44,6 @@ static int tcp_open(URLContext *h, const char *uri, int flags)
char hostname[1024],proto[1024],path[1024];
char portstr[10];
- if(!ff_network_init())
- return AVERROR(EIO);
-
url_split(proto, sizeof(proto), NULL, 0, hostname, sizeof(hostname),
&port, path, sizeof(path), uri);
if (strcmp(proto,"tcp") || port <= 0 || port >= 65536)
@@ -192,7 +189,6 @@ static int tcp_close(URLContext *h)
{
TCPContext *s = h->priv_data;
closesocket(s->fd);
- ff_network_close();
av_free(s);
return 0;
}