Commit 6df9b4ea authored by Gildas Bazin's avatar Gildas Bazin

* modules/access/mms/mmstu.c: use net_Write() instead of send().

parent 56f453f7
......@@ -926,15 +926,13 @@ static void MMSClose( access_t *p_access )
* MMS specific functions
*
****************************************************************************/
static int mms_CommandSend( access_t *p_access,
int i_command,
static int mms_CommandSend( access_t *p_access, int i_command,
uint32_t i_prefix1, uint32_t i_prefix2,
uint8_t *p_data, int i_data_old )
{
var_buffer_t buffer;
access_sys_t *p_sys = p_access->p_sys;
int i_data_by8;
int i_data_by8, i_ret;
int i_data = i_data_old;
while( i_data & 0x7 ) i_data++;
......@@ -966,10 +964,9 @@ static int mms_CommandSend( access_t *p_access,
var_buffer_add64( &buffer, 0 );
/* send it */
if( send( p_sys->i_handle_tcp,
buffer.p_data,
buffer.i_data - ( 8 - ( i_data - i_data_old ) ),
0 ) == -1 )
i_ret = net_Write( p_access, p_sys->i_handle_tcp, NULL, buffer.p_data,
buffer.i_data - ( 8 - ( i_data - i_data_old ) ) );
if( i_ret != buffer.i_data - ( 8 - ( i_data - i_data_old ) ) )
{
msg_Err( p_access, "failed to send command" );
return VLC_EGENERIC;
......
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