-
- p_sys->p_thread->p_sout = p_access->p_sout;
- p_sys->p_thread->b_die = 0;
- p_sys->p_thread->b_error= 0;
- p_sys->p_thread->p_fifo = block_FifoNew( p_access );
- p_sys->p_thread->p_empty_blocks = NULL;
- p_sys->p_thread->i_empty_depth = 0;
- vlc_mutex_init( p_access, &p_sys->p_thread->blocks_lock );
-
- /* FIXME: use net_OpenUDP API */
- socket_desc.psz_server_addr = psz_dst_addr;
- socket_desc.i_server_port = i_dst_port;
- socket_desc.psz_bind_addr = "";
- socket_desc.i_bind_port = 0;
- socket_desc.i_handle = -1;
- socket_desc.v6only = 0;
-
- var_Get( p_access, SOUT_CFG_PREFIX "ttl", &val );
- socket_desc.i_ttl = val.i_int;
-
- p_sys->p_thread->p_private = (void*)&socket_desc;
- p_network = module_Need( p_sys->p_thread, "network", "ipv4", VLC_TRUE );
- if( p_network != NULL )
- module_Unneed( p_sys->p_thread, p_network );
-
- if( socket_desc.i_handle == -1 )