diff options
author | Casimir666 <casimir666@users.sourceforge.net> | 2009-03-29 14:30:09 +0400 |
---|---|---|
committer | Casimir666 <casimir666@users.sourceforge.net> | 2009-03-29 14:30:09 +0400 |
commit | 8874962b66d87a97a5ebdcd6f40d0ae151db375d (patch) | |
tree | f1bd93f1c94c1e6b329edbc1f1bd93aba94a8719 /src/subtitles/HdmvSub.h | |
parent | 614622333421c60ab8b351c9fdc321adc3cffc55 (diff) |
Fixed : missing PGS subtitles (when palette not set between 2 objects)
Fixed : memory leak
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@1024 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/subtitles/HdmvSub.h')
-rw-r--r-- | src/subtitles/HdmvSub.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/subtitles/HdmvSub.h b/src/subtitles/HdmvSub.h index 2d92be882..6248c51b7 100644 --- a/src/subtitles/HdmvSub.h +++ b/src/subtitles/HdmvSub.h @@ -107,6 +107,7 @@ public: void Render(SubPicDesc& spd);
void WriteSeg (SubPicDesc& spd, SHORT nX, SHORT nY, SHORT nCount, SHORT nPaletteIndex);
void SetPalette (int nNbEntry, HDMV_PALETTE* pPalette, bool bIsHD);
+ bool HavePalette() { return m_nColorNumber>0; };
private :
CHdmvSub* m_pSub;
@@ -156,6 +157,9 @@ private : CompositionObject* m_pCurrentObject;
CAtlList<CompositionObject*> m_pObjects;
+ HDMV_PALETTE* m_pDefaultPalette;
+ int m_nDefaultPaletteNbEntry;
+
int m_nColorNumber;
|