]> git.sesse.net Git - vlc/commitdiff
Fix a bug in aout spdif with dolby stereo (use of obsolete PTS).
authorArnaud de Bossoreille de Ribou <bozo@videolan.org>
Fri, 27 Jul 2001 00:49:46 +0000 (00:49 +0000)
committerArnaud de Bossoreille de Ribou <bozo@videolan.org>
Fri, 27 Jul 2001 00:49:46 +0000 (00:49 +0000)
Bozo and Stef : the dream team of bozos. Stef you're gonna die (dunga).

src/ac3_spdif/ac3_spdif.c

index a70da8923cf553880758b018c725f78578efd7e7..23680871ea7e0f20ff531550090755f9fdde7cce 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.8 2001/06/09 17:01:22 stef Exp $
+ * $Id: ac3_spdif.c,v 1.9 2001/07/27 00:49:46 bozo Exp $
  *
  * Authors: Stéphane Borel <stef@via.ecp.fr>
  *          Juha Yrjola <jyrjola@cc.hut.fi>
@@ -190,9 +190,10 @@ static void RunThread( ac3_spdif_thread_t * p_spdif )
     while( !p_spdif->p_fifo->b_die && !p_spdif->p_fifo->b_error )
     {
         /* Handle the dates */
-        if( p_spdif->i_pts != m_last_pts )
+        if( ( p_spdif->i_pts ) && ( p_spdif->i_pts != m_last_pts ) )
         {
             m_last_pts = p_spdif->i_pts;
+            p_spdif->i_pts = 0;
         }
         else
         {