Commit 9bb05f5e authored by Laurent Aimar's avatar Laurent Aimar
Browse files

* input_dec: does pass empty block to the decoder.

parent 8bd5cebc
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* input_dec.c: Functions for the management of decoders * input_dec.c: Functions for the management of decoders
***************************************************************************** *****************************************************************************
* Copyright (C) 1999-2001 VideoLAN * Copyright (C) 1999-2001 VideoLAN
* $Id: input_dec.c,v 1.80 2003/11/26 08:18:09 gbazin Exp $ * $Id: input_dec.c,v 1.81 2003/11/28 16:06:56 fenrir Exp $
* *
* Authors: Christophe Massiot <massiot@via.ecp.fr> * Authors: Christophe Massiot <massiot@via.ecp.fr>
* Gildas Bazin <gbazin@netcourrier.com> * Gildas Bazin <gbazin@netcourrier.com>
...@@ -461,6 +461,11 @@ static int DecoderThread( decoder_t * p_dec ) ...@@ -461,6 +461,11 @@ static int DecoderThread( decoder_t * p_dec )
p_dec->b_error = 1; p_dec->b_error = 1;
break; break;
} }
if( p_block->i_buffer <= 0 )
{
block_Release( p_block );
continue;
}
if( p_dec->i_object_type == VLC_OBJECT_PACKETIZER ) if( p_dec->i_object_type == VLC_OBJECT_PACKETIZER )
{ {
......
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