#define MIP_LONGTEXT N_( "IP address of " \
"the master client used for the network synchronisation." )
-vlc_module_begin();
- set_shortname( N_("Network Sync"));
- set_description( N_("Network synchronisation") );
- set_category( CAT_ADVANCED );
- set_subcategory( SUBCAT_ADVANCED_MISC );
+vlc_module_begin ()
+ set_shortname( N_("Network Sync"))
+ set_description( N_("Network synchronisation") )
+ set_category( CAT_ADVANCED )
+ set_subcategory( SUBCAT_ADVANCED_MISC )
add_bool( "netsync-master", 0, NULL,
- NETSYNC_TEXT, NETSYNC_LONGTEXT, true );
+ NETSYNC_TEXT, NETSYNC_LONGTEXT, true )
add_string( "netsync-master-ip", NULL, NULL, MIP_TEXT, MIP_LONGTEXT,
- true );
+ true )
- set_capability( "interface", 0 );
- set_callbacks( Activate, Close );
-vlc_module_end();
+ set_capability( "interface", 0 )
+ set_callbacks( Activate, Close )
+vlc_module_end ()
/*****************************************************************************
* Local prototypes
msg_Err( p_intf, "master address not specified" );
return VLC_EGENERIC;
}
- fd = net_ConnectUDP( VLC_OBJECT(p_intf), psz_master, NETSYNC_PORT, 0 );
+ fd = net_ConnectUDP( VLC_OBJECT(p_intf), psz_master, NETSYNC_PORT, -1 );
free( psz_master );
}
else