[MPlayer-cvslog] r32090 - trunk/udp_sync.c

reimar subversion at mplayerhq.hu
Wed Sep 8 20:37:56 CEST 2010


Author: reimar
Date: Wed Sep  8 20:37:55 2010
New Revision: 32090

Log:
Actually set the destination address in the sockaddr_in struct for Windows as well...

Modified:
   trunk/udp_sync.c

Modified: trunk/udp_sync.c
==============================================================================
--- trunk/udp_sync.c	Wed Sep  8 20:34:21 2010	(r32089)
+++ trunk/udp_sync.c	Wed Sep  8 20:37:55 2010	(r32090)
@@ -149,7 +149,8 @@ void send_udp(const char *send_to_ip, in
         setsockopt(sockfd, SOL_SOCKET, SO_BROADCAST, &one, sizeof(one));
 
 #if HAVE_WINSOCK2_H
-        ip_valid = (inet_addr(send_to_ip) != INADDR_NONE);
+        socketinfo.sin_addr.s_addr = inet_addr(send_to_ip);
+        ip_valid = socketinfo.sin_addr.s_addr != INADDR_NONE;
 #else
         ip_valid = inet_aton(send_to_ip, &socketinfo.sin_addr);
 #endif


More information about the MPlayer-cvslog mailing list