* ac3_spdif.c: ac3 pass-through to external decoder with enabled soundcard
*****************************************************************************
* Copyright (C) 2001 VideoLAN
- * $Id: ac3_spdif.c,v 1.30 2002/06/05 18:15:46 stef Exp $
+ * $Id: ac3_spdif.c,v 1.31 2002/07/23 00:39:16 sam Exp $
*
* Authors: Stéphane Borel <stef@via.ecp.fr>
* Juha Yrjola <jyrjola@cc.hut.fi>
/****************************************************************************
* Local Prototypes
****************************************************************************/
-static int decoder_Probe ( u8 * );
+static int decoder_Probe ( vlc_fourcc_t * );
static int decoder_Run ( decoder_fifo_t * );
static int InitThread ( ac3_spdif_thread_t * );
static void EndThread ( ac3_spdif_thread_t * );
* Tries to launch a decoder and return score so that the interface is able
* to chose.
*****************************************************************************/
-static int decoder_Probe( u8 *pi_type )
+static int decoder_Probe( vlc_fourcc_t *pi_type )
{
- return( *pi_type == AC3_AUDIO_ES ) ? 0 : -1;
+ return( *pi_type == VLC_FOURCC('a','5','2',' ') ) ? 0 : -1;
}