summaryrefslogtreecommitdiff
path: root/src/liba52
diff options
context:
space:
mode:
authorMiguel Freitas <miguelfreitas@users.sourceforge.net>2003-11-02 13:50:09 +0000
committerMiguel Freitas <miguelfreitas@users.sourceforge.net>2003-11-02 13:50:09 +0000
commit850cf8dff58c8ffe78fbf56863bf683663d675d8 (patch)
tree9985d7317b114a7194f426dd0e90da8367140ff5 /src/liba52
parentb8cb0a66768b805ea4fc1aa4cf3c3a7d45957358 (diff)
downloadxine-lib-850cf8dff58c8ffe78fbf56863bf683663d675d8.tar.gz
xine-lib-850cf8dff58c8ffe78fbf56863bf683663d675d8.tar.bz2
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
Diffstat (limited to 'src/liba52')
-rw-r--r--src/liba52/xine_decoder.c5
1 files changed, 4 insertions, 1 deletions
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) {