Date: 2010-07-24 11:41:00 +0000 (Sat, 24 Jul 2010)
fixed: #7964 Some DVD's have subtitles with wrong colors if the movie is played from the DVD menu after r22032
This is quite ugly, but seems to be the only way to fix it. The clut will now remain the same during whole dvdplayer playback, which should be okey. We normally destroy and recreate dvdplayer when playing a new dvd so that shouldn't either cause a problem.
--- branches/Dharma/xbmc/cores/dvdplayer/DVDDemuxSPU.cpp 2010-07-24 11:36:23 UTC (rev 32124)
+++ branches/Dharma/xbmc/cores/dvdplayer/DVDDemuxSPU.cpp 2010-07-24 11:41:00 UTC (rev 32125)
@@ -58,8 +58,13 @@
- m_bHasClut = false;
- memset(m_clut, 0, sizeof(m_clut));
+ // We can't reset this during playback, cause we don't always
+ // get a new clut from libdvdnav leading to invalid colors
+ // so let's just never reset it. It will only be reset
+ // when dvdplayer is destructed and constructed
+ // m_bHasClut = false;
+ // memset(m_clut, 0, sizeof(m_clut));
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.