Commit 85ec3935 authored by Stéphane Borel's avatar Stéphane Borel

*Only report initiliazation error when it is really an error.

parent 1c35540e
......@@ -2,7 +2,7 @@
* ac3_spdif.c: ac3 pass-through to external decoder with enabled soundcard
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: ac3_spdif.c,v 1.29 2002/06/02 23:43:38 bozo Exp $
* $Id: ac3_spdif.c,v 1.30 2002/06/05 18:15:46 stef Exp $
*
* Authors: Stphane Borel <stef@via.ecp.fr>
* Juha Yrjola <jyrjola@cc.hut.fi>
......@@ -166,7 +166,12 @@ static int decoder_Run( decoder_fifo_t * p_fifo )
if (InitThread( p_spdif ) )
{
msg_Err( p_fifo, "could not initialize thread" );
if( p_fifo->b_error )
{
msg_Err( p_fifo, "could not initialize thread" );
}
DecoderError( p_fifo );
free( p_spdif );
return( -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