Commit 5769061d authored by Sam Hocevar's avatar Sam Hocevar

* ./src/input/input_ext-plugins.c: backported crash fix from MAIN.

parent 88039ba3
......@@ -2,7 +2,7 @@
* input_ext-plugins.c: useful functions for access and demux plug-ins
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
* $Id: input_ext-plugins.c,v 1.10 2002/05/21 00:23:37 sam Exp $
* $Id: input_ext-plugins.c,v 1.10.2.1 2002/07/21 14:37:35 sam Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
......@@ -552,11 +552,13 @@ ssize_t input_FillBuffer( input_thread_t * p_input )
(byte_t *)p_buf + sizeof(data_buffer_t)
+ i_remains,
p_input->i_bufsize );
if( i_ret < 0 ) i_ret = 0;
vlc_mutex_lock( &p_input->p_method_data->lock );
p_input->p_data_buffer = p_buf;
p_input->p_current_data = (byte_t *)p_buf + sizeof(data_buffer_t);
p_input->p_last_data = p_input->p_current_data + i_remains + i_ret;
vlc_mutex_unlock( &p_input->p_method_data->lock );
return( (ssize_t)i_remains + i_ret );
}
......
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