summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetri Hintukainen <phintuka@users.sourceforge.net>2011-11-23 13:10:54 +0200
committerPetri Hintukainen <phintuka@users.sourceforge.net>2011-11-23 13:10:54 +0200
commit1d8951f026be191da39f37726ea186a0059214e9 (patch)
treef2c64723a5c2b9999a58a2156a099ea52bc61a2d
parent89e2a82da6cac38d13a22d2888dcc2ecf1a3f027 (diff)
downloadxine-lib-1d8951f026be191da39f37726ea186a0059214e9.tar.gz
xine-lib-1d8951f026be191da39f37726ea186a0059214e9.tar.bz2
demux_ts: reset spu track map before parsing new PMT
-rw-r--r--src/demuxers/demux_ts.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/demuxers/demux_ts.c b/src/demuxers/demux_ts.c
index b05e16212..2fd03c1be 100644
--- a/src/demuxers/demux_ts.c
+++ b/src/demuxers/demux_ts.c
@@ -1570,6 +1570,9 @@ printf("Program Number is %i, looking for %i\n",program_number,this->program_num
this->videoPid = INVALID_PID;
this->spu_pid = INVALID_PID;
+ this->spu_langs_count = 0;
+ reset_track_map(this->video_fifo);
+
/*
* ES definitions start here...we are going to learn upto one video
* PID and one audio PID.
@@ -1595,7 +1598,6 @@ printf("Program Number is %i, looking for %i\n",program_number,this->program_num
/*
* Extract the elementary streams.
*/
- this->spu_langs_count = 0;
while (section_length > 0) {
unsigned int stream_info_length;