* netsync.c: synchronisation between several network clients.\r
*****************************************************************************\r
* Copyright (C) 2004 VideoLAN\r
- * $Id: ntservice.c 6963 2004-03-05 19:24:14Z murray $\r
+ * $Id$\r
*\r
* Authors: Gildas Bazin <gbazin@videolan.org>\r
*\r
msg_Info( p_intf, "Using the netsync interface module..." );\r
\r
p_intf->p_sys = malloc( sizeof( intf_sys_t ) );\r
+ if( !p_intf->p_sys )\r
+ {\r
+ msg_Err( p_intf, "no memory" );\r
+ return VLC_ENOMEM;\r
+ }\r
+\r
+ p_intf->p_sys->p_input = NULL;\r
\r
p_intf->pf_run = Run;\r
return VLC_SUCCESS;\r
char p_data[MAX_MSG_LENGTH];\r
int i_socket;\r
\r
- if( !psz_master || inet_addr( psz_master ) == INADDR_NONE )\r
+ if( !b_master && (!psz_master || inet_addr( psz_master ) == INADDR_NONE) )\r
{\r
if( psz_master ) free( psz_master );\r
msg_Err( p_intf, "invalid master address." );\r