]> git.sesse.net Git - vlc/commitdiff
* src/input/input_ext-plugins.c: added an msleep() call in case we fail to
authorGildas Bazin <gbazin@videolan.org>
Wed, 5 Mar 2003 17:55:13 +0000 (17:55 +0000)
committerGildas Bazin <gbazin@videolan.org>
Wed, 5 Mar 2003 17:55:13 +0000 (17:55 +0000)
   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.

src/input/input_ext-plugins.c

index 9b005e650dd0e607c6007a97e89c1d32e772fd46..14b6f4eca14a5123d5e0785f910ea7c772a7ef04 100644 (file)
@@ -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.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>
  *
@@ -494,6 +494,7 @@ ssize_t input_FillBuffer( input_thread_t * p_input )
     {
         vlc_mutex_unlock( &p_input->p_method_data->lock );
         msg_Err( p_input, "failed allocating a new buffer (decoder stuck?)" );
+        msleep( INPUT_IDLE_SLEEP );
         return -1;
     }
     p_buf->i_refcount = 1;