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 @@ ...@@ -2,7 +2,7 @@
* ac3_spdif.c: ac3 pass-through to external decoder with enabled soundcard * ac3_spdif.c: ac3 pass-through to external decoder with enabled soundcard
***************************************************************************** *****************************************************************************
* Copyright (C) 2001 VideoLAN * 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> * Authors: Stphane Borel <stef@via.ecp.fr>
* Juha Yrjola <jyrjola@cc.hut.fi> * Juha Yrjola <jyrjola@cc.hut.fi>
...@@ -165,8 +165,13 @@ static int decoder_Run( decoder_fifo_t * p_fifo ) ...@@ -165,8 +165,13 @@ static int decoder_Run( decoder_fifo_t * p_fifo )
p_spdif->p_fifo = p_fifo; p_spdif->p_fifo = p_fifo;
if (InitThread( p_spdif ) ) if (InitThread( p_spdif ) )
{
if( p_fifo->b_error )
{ {
msg_Err( p_fifo, "could not initialize thread" ); msg_Err( p_fifo, "could not initialize thread" );
}
DecoderError( p_fifo ); DecoderError( p_fifo );
free( p_spdif ); free( p_spdif );
return( -1 ); 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