* http.c: HTTP access plug-in
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
- * $Id: http.c,v 1.15 2002/12/06 12:54:30 sam Exp $
+ * $Id: http.c,v 1.16 2002/12/11 20:13:50 fenrir Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
if( p_input->stream.p_selected_area->i_size )
{
- p_input->stream.p_selected_area->i_tell = i_tell
+ p_input->stream.p_selected_area->i_tell = i_tell;
+ (p_input->p_last_data - p_input->p_current_data);
}
else
{
ssize_t i_recv = recv( p_access_data->i_handle, p_buffer, i_len, 0 );
- if( i_recv > 0 )
- {
- vlc_mutex_lock( &p_input->stream.stream_lock );
- p_input->stream.p_selected_area->i_tell += i_recv;
- vlc_mutex_unlock( &p_input->stream.stream_lock );
- }
-
if( i_recv < 0 )
{
#ifdef HAVE_ERRNO_H
* rtp.c: RTP access plug-in
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
- * $Id: rtp.c,v 1.7 2002/12/06 16:34:04 sam Exp $
+ * $Id: rtp.c,v 1.8 2002/12/11 20:13:50 fenrir Exp $
*
* Authors: Tristan Leteurtre <tooney@via.ecp.fr>
*
{
ssize_t i_recv = recv( p_access_data->i_handle, p_buffer, i_len, 0 );
- if( i_recv > 0 )
- {
- vlc_mutex_lock( &p_input->stream.stream_lock );
- p_input->stream.p_selected_area->i_tell += i_recv;
- vlc_mutex_unlock( &p_input->stream.stream_lock );
- }
-
if( i_recv < 0 )
{
msg_Err( p_input, "recv failed (%s)", strerror(errno) );
* udp.c: raw UDP access plug-in
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
- * $Id: udp.c,v 1.4 2002/11/12 13:57:12 sam Exp $
+ * $Id: udp.c,v 1.5 2002/12/11 20:13:50 fenrir Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
{
ssize_t i_recv = recv( p_access_data->i_handle, p_buffer, i_len, 0 );
- if( i_recv > 0 )
- {
- vlc_mutex_lock( &p_input->stream.stream_lock );
- p_input->stream.p_selected_area->i_tell += i_recv;
- vlc_mutex_unlock( &p_input->stream.stream_lock );
- }
-
if( i_recv < 0 )
{
msg_Err( p_input, "recv failed (%s)", strerror(errno) );