]> git.sesse.net Git - vlc/commitdiff
* src/stream_output/announce.c: inet_pton() isn't supported on win32 so disabled...
authorGildas Bazin <gbazin@videolan.org>
Tue, 24 Jun 2003 11:26:32 +0000 (11:26 +0000)
committerGildas Bazin <gbazin@videolan.org>
Tue, 24 Jun 2003 11:26:32 +0000 (11:26 +0000)
Wouldn't it be possible to use send() instead of sendto() ? That would simplify the code and get rid of this problem.

src/stream_output/announce.c

index 7c8086432c1b685258db95771441839a986ad686..395c0a2dce571e3afc245bfc238642b6891b383d 100644 (file)
@@ -141,7 +141,9 @@ sap_session_t * sout_SAPNew ( sout_instance_t *p_sout ,
             return NULL;
         }
         
+#ifndef WIN32
         i_status         = inet_pton(AF_INET6,sap_ipv6_addr,net_ipv6_addr);
+#endif
         if(i_status < 0 )
         {
            msg_Warn(p_sout,"Unable to convert address to network format");