From 2e448ef8ddd59d81aa28e207bda0bd2b4fcdf1b7 Mon Sep 17 00:00:00 2001
From: Christophe Massiot <massiot@videolan.org>
Date: Mon, 12 Aug 2002 07:40:23 +0000
Subject: [PATCH] Fixed a S/PDIF bug.

---
 modules/audio_mixer/spdif.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/modules/audio_mixer/spdif.c b/modules/audio_mixer/spdif.c
index b676892a9a..8ee4d62375 100644
--- a/modules/audio_mixer/spdif.c
+++ b/modules/audio_mixer/spdif.c
@@ -2,7 +2,7 @@
  * spdif.c : dummy mixer for S/PDIF output (1 input only)
  *****************************************************************************
  * Copyright (C) 2002 VideoLAN
- * $Id: spdif.c,v 1.1 2002/08/11 22:36:35 massiot Exp $
+ * $Id: spdif.c,v 1.2 2002/08/12 07:40:23 massiot Exp $
  *
  * Authors: Christophe Massiot <massiot@via.ecp.fr>
  *
@@ -64,7 +64,7 @@ static int Create( vlc_object_t *p_this )
     p_aout->mixer.pf_do_work = DoWork;
     /* This is a bit kludgy - do not ask for a new buffer, since the one
      * provided by the first input will be good enough. */
-    p_aout->mixer.output_alloc.i_alloc = AOUT_ALLOC_NONE;
+    p_aout->mixer.output_alloc.i_alloc_type = AOUT_ALLOC_NONE;
 
     return 0;
 }
@@ -74,5 +74,7 @@ static int Create( vlc_object_t *p_this )
  *****************************************************************************/
 static void DoWork( aout_instance_t * p_aout, aout_buffer_t * p_buffer )
 {
+    aout_input_t * p_input = p_aout->pp_inputs[0];
+    aout_FifoPop( p_aout, &p_input->fifo );
 }
 
-- 
2.25.4