Fix a bug in aout spdif with dolby stereo (use of obsolete PTS).

Bozo and Stef : the dream team of bozos. Stef you're gonna die (dunga).
parent bad0a366
...@@ -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.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: 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>
...@@ -190,9 +190,10 @@ static void RunThread( ac3_spdif_thread_t * p_spdif ) ...@@ -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 ) while( !p_spdif->p_fifo->b_die && !p_spdif->p_fifo->b_error )
{ {
/* Handle the dates */ /* 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; m_last_pts = p_spdif->i_pts;
p_spdif->i_pts = 0;
} }
else else
{ {
......
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