static int Write( sout_access_out_t *p_access, block_t *p_buffer )
{
sout_access_out_sys_t *p_sys = p_access->p_sys;
+ int i_len = 0;
while( p_buffer )
{
p_sys->p_buffer = NULL;
}
+ i_len += p_buffer->i_buffer;
while( p_buffer->i_buffer )
{
int i_payload_size = p_sys->i_mtu;
p_buffer = p_next;
}
- return( p_sys->p_thread->b_error ? -1 : 0 );
+ return( p_sys->p_thread->b_error ? -1 : i_len );
}
/*****************************************************************************
{
sout_access_out_sys_t *p_sys = p_access->p_sys;
block_t *p_buf;
+ int i_len;
while ( p_sys->p_thread->p_empty_blocks->i_depth >= MAX_EMPTY_BLOCKS )
{
block_Release( p_buf );
}
+ i_len = p_buffer->i_buffer;
block_FifoPut( p_sys->p_thread->p_fifo, p_buffer );
- return( p_sys->p_thread->b_error ? -1 : 0 );
+ return( p_sys->p_thread->b_error ? -1 : i_len );
}
/*****************************************************************************