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/transform/Mpeg2DecFilter | |
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/transform/Mpeg2DecFilter')
-rw-r--r-- | src/filters/transform/Mpeg2DecFilter/Mpeg2DecFilter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/filters/transform/Mpeg2DecFilter/Mpeg2DecFilter.cpp b/src/filters/transform/Mpeg2DecFilter/Mpeg2DecFilter.cpp index 81c31982b..7eb4f94b5 100644 --- a/src/filters/transform/Mpeg2DecFilter/Mpeg2DecFilter.cpp +++ b/src/filters/transform/Mpeg2DecFilter/Mpeg2DecFilter.cpp @@ -450,7 +450,7 @@ HRESULT CMpeg2DecFilter::Transform(IMediaSample* pIn) long len = pIn->GetActualDataLength();
- ((CDeCSSInputPin*)m_pInput)->StripPacket(pDataIn, len);
+ (static_cast<CDeCSSInputPin*>(m_pInput))->StripPacket(pDataIn, len);
if(pIn->IsDiscontinuity() == S_OK)
{
@@ -1495,7 +1495,7 @@ void CSubpicInputPin::RenderSubpics(REFERENCE_TIME rt, BYTE** yuv, int w, int h) {
spu* sp = m_sps.GetNext(pos);
if(sp->m_rtStart <= rt && rt < sp->m_rtStop
- && (m_spon || sp->m_fForced && (((CMpeg2DecFilter*)m_pFilter)->IsForcedSubtitlesEnabled() || sp->m_psphli)))
+ && (m_spon || sp->m_fForced && ((static_cast<CMpeg2DecFilter*>(m_pFilter))->IsForcedSubtitlesEnabled() || sp->m_psphli)))
sp->Render(rt, yuv, w, h, m_sppal, m_fsppal);
}
}
@@ -1683,7 +1683,7 @@ STDMETHODIMP CSubpicInputPin::Set(REFGUID PropSet, ULONG Id, LPVOID pInstanceDat if(fRefresh)
{
- ((CMpeg2DecFilter*)m_pFilter)->Deliver(true);
+ (static_cast<CMpeg2DecFilter*>(m_pFilter))->Deliver(true);
}
return S_OK;
|