Commit 8f954dc4 authored by Xavier Marchesini's avatar Xavier Marchesini

The vlc now crosscompiles smoothly without having to correct one file

BUT this is UGLY ! We HAVE to find a way to make multicast function
under Win32.

BTW, it does now definitely read TS Streams, locally or from the network.
parent 7a3cca8a
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* input_ts.c: TS demux and netlist management * input_ts.c: TS demux and netlist management
***************************************************************************** *****************************************************************************
* Copyright (C) 1998, 1999, 2000 VideoLAN * Copyright (C) 1998, 1999, 2000 VideoLAN
* $Id: input_ts.c,v 1.34 2001/10/02 16:46:59 massiot Exp $ * $Id: input_ts.c,v 1.35 2001/10/22 02:33:54 xav Exp $
* *
* Authors: Henri Fallon <henri@videolan.org> * Authors: Henri Fallon <henri@videolan.org>
* *
...@@ -240,7 +240,7 @@ static int TSRead( input_thread_t * p_input, ...@@ -240,7 +240,7 @@ static int TSRead( input_thread_t * p_input,
thread_ts_data_t * p_method; thread_ts_data_t * p_method;
unsigned int i_loop; unsigned int i_loop;
int i_read; int i_read;
int i_data = 0; int i_data = 1;
struct iovec * p_iovec; struct iovec * p_iovec;
struct timeval timeout; struct timeval timeout;
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* decoders. * decoders.
***************************************************************************** *****************************************************************************
* Copyright (C) 1998, 1999, 2000 VideoLAN * Copyright (C) 1998, 1999, 2000 VideoLAN
* $Id: input.c,v 1.143 2001/10/15 14:59:56 sam Exp $ * $Id: input.c,v 1.144 2001/10/22 02:33:54 xav Exp $
* *
* Authors: Christophe Massiot <massiot@via.ecp.fr> * Authors: Christophe Massiot <massiot@via.ecp.fr>
* *
...@@ -47,6 +47,7 @@ ...@@ -47,6 +47,7 @@
#endif #endif
#ifdef WIN32 #ifdef WIN32
# include <winsock.h>
# include <winsock2.h> # include <winsock2.h>
#elif !defined( SYS_BEOS ) && !defined( SYS_NTO ) #elif !defined( SYS_BEOS ) && !defined( SYS_NTO )
# include <netdb.h> /* hostent ... */ # include <netdb.h> /* hostent ... */
...@@ -865,6 +866,7 @@ static void NetworkOpen( input_thread_t * p_input ) ...@@ -865,6 +866,7 @@ static void NetworkOpen( input_thread_t * p_input )
{ {
sock.sin_addr.s_addr = INADDR_ANY; sock.sin_addr.s_addr = INADDR_ANY;
} }
#define IN_MULTICAST(a) IN_CLASSD(a) #define IN_MULTICAST(a) IN_CLASSD(a)
#endif #endif
...@@ -879,6 +881,8 @@ static void NetworkOpen( input_thread_t * p_input ) ...@@ -879,6 +881,8 @@ static void NetworkOpen( input_thread_t * p_input )
} }
/* Join the multicast group if the socket is a multicast address */ /* Join the multicast group if the socket is a multicast address */
#ifndef WIN32
if( IN_MULTICAST( ntohl(i_mc_group) ) ) if( IN_MULTICAST( ntohl(i_mc_group) ) )
{ {
struct ip_mreq imr; struct ip_mreq imr;
...@@ -895,6 +899,7 @@ static void NetworkOpen( input_thread_t * p_input ) ...@@ -895,6 +899,7 @@ static void NetworkOpen( input_thread_t * p_input )
return; return;
} }
} }
#endif
/* Build socket for remote connection */ /* Build socket for remote connection */
if ( network_BuildRemoteAddr( &sock, psz_server ) == -1 ) if ( network_BuildRemoteAddr( &sock, psz_server ) == -1 )
......
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