diff options
author | Nevcairiel <Nevcairiel@users.sourceforge.net> | 2010-08-22 20:01:15 +0400 |
---|---|---|
committer | Nevcairiel <Nevcairiel@users.sourceforge.net> | 2010-08-22 20:01:15 +0400 |
commit | 27d2869d265b4f07d83c75cc6c492ecb2d7d5184 (patch) | |
tree | 6f6c7178f72ad3ba389c89b2104c4461c794f8d2 /src/apps/mplayerc | |
parent | 0fc70a844a5929f87aff978bfbeaf93ceb49a2a5 (diff) |
Reconnect the OutputPin of the TextPassThru filter when the MediaType changes to notify any upstream filter about the change.
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@2298 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/apps/mplayerc')
-rw-r--r-- | src/apps/mplayerc/TextPassThruFilter.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/apps/mplayerc/TextPassThruFilter.cpp b/src/apps/mplayerc/TextPassThruFilter.cpp index 807f41521..3965f906c 100644 --- a/src/apps/mplayerc/TextPassThruFilter.cpp +++ b/src/apps/mplayerc/TextPassThruFilter.cpp @@ -67,6 +67,8 @@ public: STDMETHODIMP EndOfStream();
STDMETHODIMP BeginFlush();
STDMETHODIMP EndFlush();
+
+ HRESULT CompleteConnect(IPin* pReceivePin);
};
//
@@ -132,6 +134,13 @@ STDMETHODIMP CTextPassThruInputPin::EndFlush() return m_pTPTFilter->m_pOutput->DeliverEndFlush();
}
+HRESULT CTextPassThruInputPin::CompleteConnect(IPin* pReceivePin)
+{
+ HRESULT hr = __super::CompleteConnect(pReceivePin);
+ if(FAILED(hr) || !m_pTPTFilter->m_pOutput->IsConnected()) return hr;
+ return m_pTPTFilter->ReconnectPin(m_pTPTFilter->m_pOutput, &m_mt);
+}
+
//
CTextPassThruOutputPin::CTextPassThruOutputPin(CTextPassThruFilter* pTPTFilter, CCritSec* pLock, HRESULT* phr)
|