[Ffmpeg-cvslog] r8068 - trunk/ffserver.c
alex
subversion
Thu Feb 22 13:17:26 CET 2007
Author: alex
Date: Thu Feb 22 13:17:25 2007
New Revision: 8068
Modified:
trunk/ffserver.c
Log:
change close() to closesocket() on sockets (compatible with libavformat)
Modified: trunk/ffserver.c
==============================================================================
--- trunk/ffserver.c (original)
+++ trunk/ffserver.c Thu Feb 22 13:17:25 2007
@@ -436,13 +436,13 @@
char bindmsg[32];
snprintf(bindmsg, sizeof(bindmsg), "bind(port %d)", ntohs(my_addr->sin_port));
perror (bindmsg);
- close(server_fd);
+ closesocket(server_fd);
return -1;
}
if (listen (server_fd, 5) < 0) {
perror ("listen");
- close(server_fd);
+ closesocket(server_fd);
return -1;
}
fcntl(server_fd, F_SETFL, O_NONBLOCK);
@@ -686,7 +686,7 @@
av_free(c->buffer);
av_free(c);
}
- close(fd);
+ closesocket(fd);
}
static void close_connection(HTTPContext *c)
@@ -716,7 +716,7 @@
/* remove connection associated resources */
if (c->fd >= 0)
- close(c->fd);
+ closesocket(c->fd);
if (c->fmt_in) {
/* close each frame parser */
for(i=0;i<c->fmt_in->nb_streams;i++) {
More information about the ffmpeg-cvslog
mailing list