From 850cf8dff58c8ffe78fbf56863bf683663d675d8 Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Sun, 2 Nov 2003 13:50:09 +0000 Subject: fix bug introduced with new PTS handling (where an old PTS would be used past a discontinuity - causing loong freezing in animated menus). i have no idea of why we need to maintain a list of PTS's here. James, maybe you could add a few notes about it? CVS patchset: 5674 CVS date: 2003/11/02 13:50:09 --- src/liba52/xine_decoder.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/liba52/xine_decoder.c b/src/liba52/xine_decoder.c index e19aa6ac3..25e8eb9a3 100644 --- a/src/liba52/xine_decoder.c +++ b/src/liba52/xine_decoder.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: xine_decoder.c,v 1.58 2003/10/06 17:03:25 jcdutton Exp $ + * $Id: xine_decoder.c,v 1.59 2003/11/02 13:50:09 miguelfreitas Exp $ * * stuff needed to turn liba52 into a xine decoder plugin */ @@ -150,6 +150,7 @@ static void a52dec_reset (audio_decoder_t *this_gen) { this->syncword = 0; this->sync_state = 0; this->pts = 0; + this->pts_list[0] = this->pts_list[1] = this->pts_list[2] = 0; this->pts_list_position = 0; } @@ -158,6 +159,8 @@ static void a52dec_discontinuity (audio_decoder_t *this_gen) { a52dec_decoder_t *this = (a52dec_decoder_t *) this_gen; this->pts = 0; + this->pts_list[0] = this->pts_list[1] = this->pts_list[2] = 0; + this->pts_list_position = 0; } static inline int16_t blah (int32_t i) { -- cgit v1.2.3