* input_ts.c: TS demux and netlist management
*****************************************************************************
* Copyright (C) 1998, 1999, 2000 VideoLAN
- * $Id: input_ts.c,v 1.8 2001/03/07 00:18:46 henri Exp $
+ * $Id: input_ts.c,v 1.9 2001/03/07 01:36:41 sam Exp $
*
* Authors:
*
#define input p_function_list->functions.input
p_function_list->pf_probe = TSProbe;
input.pf_init = TSInit;
-// input.pf_open = input_FileOpen;
-// input.pf_close = input_FileClose;
+#ifdef SYS_BEOS
+ input.pf_open = input_FileOpen;
+ input.pf_close = input_FileClose;
+#else
input.pf_open = input_NetworkOpen;
input.pf_close = input_NetworkClose;
+#endif
input.pf_end = TSEnd;
input.pf_set_area = NULL;
input.pf_read = TSRead;
* decoders.
*****************************************************************************
* Copyright (C) 1998, 1999, 2000 VideoLAN
- * $Id: input.c,v 1.89 2001/03/07 00:18:46 henri Exp $
+ * $Id: input.c,v 1.90 2001/03/07 01:36:41 sam Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
/* Network functions */
+#ifndef SYS_BEOS
#include <netdb.h> /* hostent ... */
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/types.h>
#include <sys/socket.h>
+#endif
#ifdef STATS
# include <sys/times.h>
psz_name += 4;
i_stat = stat( psz_name, &stat_info );
}
- else if( ( i_size > 5 )
+ else if( ( i_size > 5 )
&& !strncasecmp( psz_name, "file:", 5 ) )
{
/* get rid of the 'file:' stuff and try again */
i_stat = stat( psz_name, &stat_info );
}
- if( i_stat == (-1) )
+ if( i_stat == (-1) )
{
intf_ErrMsg( "input error: cannot stat() file `%s' (%s)",
psz_name, strerror(errno));
return;
}
+#ifndef SYS_BEOS
/*****************************************************************************
* input_BuildLocalAddr : fill a sockaddr_in structure for local binding
*****************************************************************************/
close( p_input->i_handle );
/* FIXME: deal with channels */
}
+#endif