From a588599bd24399e45f82fcb19b6a28fb6537771f Mon Sep 17 00:00:00 2001 From: Darren Salt Date: Thu, 28 Jan 2010 02:33:16 +0000 Subject: Do the dvbsub CLUT reset in spudec_reset. This is probably still wrong, but at least works properly with BBC subtitling. --- src/spu_dec/spudvb_decoder.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/spu_dec/spudvb_decoder.c b/src/spu_dec/spudvb_decoder.c index 197b1cd49..b6720acdf 100644 --- a/src/spu_dec/spudvb_decoder.c +++ b/src/spu_dec/spudvb_decoder.c @@ -987,7 +987,6 @@ static void spudec_decode_data (spu_decoder_t * this_gen, buf_element_t * buf) /* completely ignore pts since it makes a lot of problems with various providers */ this->vpts = 0; - reset_clut (this->dvbsub); /* process the pes section */ PES_packet_length = this->pes_pkt_size; @@ -1058,8 +1057,9 @@ static void spudec_reset (spu_decoder_t * this_gen) this->dvbsub->regions[i].version_number = -1; } this->dvbsub->page.page_version_number = -1; - pthread_mutex_unlock(&this->dvbsub_osd_mutex); + reset_clut (this->dvbsub); + pthread_mutex_unlock(&this->dvbsub_osd_mutex); } static void spudec_discontinuity (spu_decoder_t * this_gen) -- cgit v1.2.3