diff options
author | tetsuo55 <tetsuo55@users.sourceforge.net> | 2010-04-09 01:14:58 +0400 |
---|---|---|
committer | tetsuo55 <tetsuo55@users.sourceforge.net> | 2010-04-09 01:14:58 +0400 |
commit | a9b7bf3fb3e1334d8defd05ca4cfae870b4912e5 (patch) | |
tree | 2dab453d94d5e003379a6cc895eceb84c80e23ec /src/filters/BaseClasses/amextra.cpp | |
parent | aafd49a91f7c2fa9c7103971c16fa6e1b29e8bfd (diff) |
astyle formatting cleanup to make the sourcecode more accessible
switch used: astyle --style=ansi --min-conditional-indent=0 --pad=oper --unpad=paren
http://astyle.sourceforge.net/
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@1783 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/filters/BaseClasses/amextra.cpp')
-rw-r--r-- | src/filters/BaseClasses/amextra.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/filters/BaseClasses/amextra.cpp b/src/filters/BaseClasses/amextra.cpp index af0de96d1..d0bbcd429 100644 --- a/src/filters/BaseClasses/amextra.cpp +++ b/src/filters/BaseClasses/amextra.cpp @@ -49,11 +49,13 @@ STDMETHODIMP CRenderedInputPin::EndOfStream() HRESULT hr = CheckStreaming();
// Do EC_COMPLETE handling for rendered pins
- if (S_OK == hr && !m_bAtEndOfStream) {
+ if(S_OK == hr && !m_bAtEndOfStream)
+ {
m_bAtEndOfStream = TRUE;
FILTER_STATE fs;
EXECUTE_ASSERT(SUCCEEDED(m_pFilter->GetState(0, &fs)));
- if (fs == State_Running) {
+ if(fs == State_Running)
+ {
DoCompleteHandling();
}
}
@@ -81,7 +83,8 @@ HRESULT CRenderedInputPin::Run(REFERENCE_TIME tStart) {
UNREFERENCED_PARAMETER(tStart);
m_bCompleteNotified = FALSE;
- if (m_bAtEndOfStream) {
+ if(m_bAtEndOfStream)
+ {
DoCompleteHandling();
}
return S_OK;
@@ -103,7 +106,8 @@ HRESULT CRenderedInputPin::Active() void CRenderedInputPin::DoCompleteHandling()
{
ASSERT(m_bAtEndOfStream);
- if (!m_bCompleteNotified) {
+ if(!m_bCompleteNotified)
+ {
m_bCompleteNotified = TRUE;
m_pFilter->NotifyEvent(EC_COMPLETE, S_OK, (LONG_PTR)(IBaseFilter *)m_pFilter);
}
|