[MPlayer-cvslog] r18840 - trunk/libmpdemux/librtsp/rtsp_rtp.c
ben
subversion at mplayerhq.hu
Tue Jun 27 21:18:52 CEST 2006
Author: ben
Date: Tue Jun 27 21:18:52 2006
New Revision: 18840
Modified:
trunk/libmpdemux/librtsp/rtsp_rtp.c
Log:
network code portability for win32
Modified: trunk/libmpdemux/librtsp/rtsp_rtp.c
==============================================================================
--- trunk/libmpdemux/librtsp/rtsp_rtp.c (original)
+++ trunk/libmpdemux/librtsp/rtsp_rtp.c Tue Jun 27 21:18:52 2006
@@ -381,8 +381,17 @@
return -1;
sin.sin_family = AF_INET;
- inet_pton (AF_INET, addr, &sin.sin_addr);
+#ifndef HAVE_WINSOCK2
+#ifdef USE_ATON
+ inet_aton (addr, &sin.sin_addr);
+#else
+ inet_pton (AF_INET, addr, &sin.sin_addr);
+#endif
+#else
+ sin.sin_addr.s_addr = htonl (INADDR_ANY);
+#endif
+
if ((ntohl (sin.sin_addr.s_addr) >> 28) == 0xe)
return 1;
More information about the MPlayer-cvslog
mailing list