Commit dd411293 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Untested attempt to fix multicast IPv4 on Windows

parent 3f8b6306
......@@ -217,8 +217,7 @@ static int OpenUDP( vlc_object_t * p_this )
*/
if( IN_MULTICAST( ntohl( sock.sin_addr.s_addr ) ) )
{
struct sockaddr_in stupid = sock;
stupid.sin_addr.s_addr = INADDR_ANY;
struct sockaddr_in stupid = { .sin_family = AF_INET };
if( bind( i_handle, (struct sockaddr *)&stupid, sizeof( sock ) < 0 ) )
{
......
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