Commit b7b2c203 authored by Gildas Bazin's avatar Gildas Bazin

* src/input/input_ext-plugins.c: added an msleep() call in case we fail to
   allocate a new buffer in input_FillBuffer(). This is necessary because
   the input thread has an high priority and we don't want it to loop
   without any interruption.
parent b9c92a22
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* input_ext-plugins.c: useful functions for access and demux plug-ins * input_ext-plugins.c: useful functions for access and demux plug-ins
***************************************************************************** *****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN * Copyright (C) 2001, 2002 VideoLAN
* $Id: input_ext-plugins.c,v 1.29 2003/02/24 14:40:22 sigmunau Exp $ * $Id: input_ext-plugins.c,v 1.30 2003/03/05 17:55:13 gbazin Exp $
* *
* Authors: Christophe Massiot <massiot@via.ecp.fr> * Authors: Christophe Massiot <massiot@via.ecp.fr>
* *
...@@ -494,6 +494,7 @@ ssize_t input_FillBuffer( input_thread_t * p_input ) ...@@ -494,6 +494,7 @@ ssize_t input_FillBuffer( input_thread_t * p_input )
{ {
vlc_mutex_unlock( &p_input->p_method_data->lock ); vlc_mutex_unlock( &p_input->p_method_data->lock );
msg_Err( p_input, "failed allocating a new buffer (decoder stuck?)" ); msg_Err( p_input, "failed allocating a new buffer (decoder stuck?)" );
msleep( INPUT_IDLE_SLEEP );
return -1; return -1;
} }
p_buf->i_refcount = 1; p_buf->i_refcount = 1;
......
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