diff options
author | Casimir666 <casimir666@users.sourceforge.net> | 2008-12-20 17:35:34 +0300 |
---|---|---|
committer | Casimir666 <casimir666@users.sourceforge.net> | 2008-12-20 17:35:34 +0300 |
commit | 162bbc48209c6d11e67d7ca31470bec667682e21 (patch) | |
tree | ba913c573bfa678f51a5fd55077600928859d810 /src/subtitles/RenderedHdmvSubtitle.cpp | |
parent | e251ccc93101960713ccde6a2d87b36a37ca5495 (diff) |
FIXED : Bugs on presentation graphics (missing subtitles, better synchronization)
FIXED : Audio change on M2TS files reset the selected subtitle
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@931 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/subtitles/RenderedHdmvSubtitle.cpp')
-rw-r--r-- | src/subtitles/RenderedHdmvSubtitle.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/subtitles/RenderedHdmvSubtitle.cpp b/src/subtitles/RenderedHdmvSubtitle.cpp index 1c8be0c09..341b23b5f 100644 --- a/src/subtitles/RenderedHdmvSubtitle.cpp +++ b/src/subtitles/RenderedHdmvSubtitle.cpp @@ -77,7 +77,7 @@ STDMETHODIMP_(REFERENCE_TIME) CRenderedHdmvSubtitle::GetStop(POSITION pos, doubl STDMETHODIMP_(bool) CRenderedHdmvSubtitle::IsAnimated(POSITION pos)
{
- return(true);
+ return(false);
}
STDMETHODIMP CRenderedHdmvSubtitle::Render(SubPicDesc& spd, REFERENCE_TIME rt, double fps, RECT& bbox)
@@ -94,6 +94,12 @@ STDMETHODIMP CRenderedHdmvSubtitle::GetTextureSize (POSITION pos, SIZE& MaxTextu return m_HdmvSub.GetTextureSize(pos, MaxTextureSize, VideoSize, VideoTopLeft);
};
+STDMETHODIMP CRenderedHdmvSubtitle::UpdateStop(REFERENCE_TIME rtStart, REFERENCE_TIME* rtStop)
+{
+ CAutoLock cAutoLock(&m_csCritSec);
+ return m_HdmvSub.UpdateStop (rtStart, rtStop);
+}
+
// IPersist
STDMETHODIMP CRenderedHdmvSubtitle::GetClassID(CLSID* pClassID)
|