Commit 448290d5 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Win32: don't call setsockopt if compiling for Windows 8.0

parent ca1e1569
......@@ -104,6 +104,7 @@ static int net_SetupDgramSocket (vlc_object_t *p_obj, int fd,
* SetSocketMediaStreamingMode is present in win 8 and later, so we set
* receive buffer if that isn't present
*/
#if _WIN32_WINNT < 0x602
HINSTANCE h_Network = LoadLibraryW(L"Windows.Networking.dll");
if( (h_Network == NULL) ||
(GetProcAddress( h_Network, "SetSocketMediaStreamingMode" ) == NULL ) )
......@@ -113,6 +114,7 @@ static int net_SetupDgramSocket (vlc_object_t *p_obj, int fd,
}
if( h_Network )
FreeLibrary( h_Network );
#endif
if (net_SockAddrIsMulticast (ptr->ai_addr, ptr->ai_addrlen)
&& (sizeof (struct sockaddr_storage) >= ptr->ai_addrlen))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment