From 1d8951f026be191da39f37726ea186a0059214e9 Mon Sep 17 00:00:00 2001 From: Petri Hintukainen Date: Wed, 23 Nov 2011 13:10:54 +0200 Subject: demux_ts: reset spu track map before parsing new PMT --- src/demuxers/demux_ts.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3