]> git.sesse.net Git - vlc/blobdiff - plugins/ac3_spdif/ac3_spdif.c
* ALL: decoders now use a fourcc as a probe value.
[vlc] / plugins / ac3_spdif / ac3_spdif.c
index be0e1f1edea55aae355036f481be3fc7661543ed..79791b562c1159c74eb72af3d5c5f5f655481ad0 100644 (file)
@@ -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.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>
@@ -44,7 +44,7 @@
 /****************************************************************************
  * 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 * );
@@ -132,9 +132,9 @@ MODULE_DEACTIVATE_STOP
  * 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;
 }