diff options
author | jonasno <jonasno@users.sourceforge.net> | 2010-02-19 01:01:33 +0300 |
---|---|---|
committer | jonasno <jonasno@users.sourceforge.net> | 2010-02-19 01:01:33 +0300 |
commit | ca7ad0034eb7760572223a7e120d1be2e35e34d8 (patch) | |
tree | e7d3d3dc8f8a17c9622a5c2e5afc67978699b4d2 /src/filters/parser/MpegSplitter | |
parent | c37e22cac1d15d150c66b61fba3b79eb3f899b7e (diff) |
Changed C casts to C++ casts and some code formatting corrections
Patch by XhmikosR
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@1676 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/filters/parser/MpegSplitter')
-rw-r--r-- | src/filters/parser/MpegSplitter/MpegSplitter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/filters/parser/MpegSplitter/MpegSplitter.cpp b/src/filters/parser/MpegSplitter/MpegSplitter.cpp index 8805c4469..ea4e420a6 100644 --- a/src/filters/parser/MpegSplitter/MpegSplitter.cpp +++ b/src/filters/parser/MpegSplitter/MpegSplitter.cpp @@ -357,7 +357,7 @@ HRESULT CMpegSplitterFilter::CreateOutputs(IAsyncReader* pAsyncReader) CAutoPtr<CBaseSplitterOutputPin> pPinOut(DNew CMpegSplitterOutputPin(mts, name, this, this, &hr));
if (i == CMpegSplitterFile::subpic)
- ((CMpegSplitterOutputPin*)pPinOut.m_p)->SetMaxShift (_I64_MAX);
+ (static_cast<CMpegSplitterOutputPin*>(pPinOut.m_p))->SetMaxShift (_I64_MAX);
if(S_OK == AddOutputPin(s, pPinOut))
break;
}
@@ -1587,11 +1587,11 @@ STDMETHODIMP CMpegSplitterOutputPin::Connect(IPin* pReceivePin, const AM_MEDIA_T if (SUCCEEDED (pReceivePin->QueryPinInfo (&PinInfo)))
{
if (SUCCEEDED (PinInfo.pFilter->GetClassID(&FilterClsid)) && (FilterClsid == CLSID_DMOWrapperFilter))
- ((CMpegSplitterFilter*)m_pFilter)->SetPipo(true);
+ (static_cast<CMpegSplitterFilter*>(m_pFilter))->SetPipo(true);
PinInfo.pFilter->Release();
}
hr = __super::Connect (pReceivePin, pmt);
- ((CMpegSplitterFilter*)m_pFilter)->SetPipo(false);
+ (static_cast<CMpegSplitterFilter*>(m_pFilter))->SetPipo(false);
return hr;
}
|