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/muxer/MatroskaMuxer/MatroskaMuxer.cpp | |
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/muxer/MatroskaMuxer/MatroskaMuxer.cpp')
-rw-r--r-- | src/filters/muxer/MatroskaMuxer/MatroskaMuxer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/filters/muxer/MatroskaMuxer/MatroskaMuxer.cpp b/src/filters/muxer/MatroskaMuxer/MatroskaMuxer.cpp index 36d523dcb..29fda742d 100644 --- a/src/filters/muxer/MatroskaMuxer/MatroskaMuxer.cpp +++ b/src/filters/muxer/MatroskaMuxer/MatroskaMuxer.cpp @@ -723,7 +723,7 @@ HRESULT CMatroskaMuxerInputPin::CompleteConnect(IPin* pPin) m_pTE->TrackUID.Set(rand());
m_pTE->MinCache.Set(1);
m_pTE->MaxCache.Set(1);
- m_pTE->TrackNumber.Set(((CMatroskaMuxerFilter*)m_pFilter)->GetTrackNumber(this));
+ m_pTE->TrackNumber.Set((static_cast<CMatroskaMuxerFilter*>(m_pFilter))->GetTrackNumber(this));
hr = E_FAIL;
@@ -1112,7 +1112,7 @@ HRESULT CMatroskaMuxerInputPin::CompleteConnect(IPin* pPin) if(S_OK == hr)
{
- ((CMatroskaMuxerFilter*)m_pFilter)->AddInput();
+ (static_cast<CMatroskaMuxerFilter*>(m_pFilter))->AddInput();
}
return hr;
@@ -1195,7 +1195,7 @@ STDMETHODIMP CMatroskaMuxerInputPin::Receive(IMediaSample* pSample) /**/
TRACE(_T("Received (%d): %I64d-%I64d (c=%d, co=%dms), len=%d, d%d p%d s%d\n"),
- ((CMatroskaMuxerFilter*)m_pFilter)->GetTrackNumber(this),
+ (static_cast<CMatroskaMuxerFilter*>(m_pFilter))->GetTrackNumber(this),
rtStart, rtStop, (int)((rtStart/10000)/MAXCLUSTERTIME), (int)((rtStart/10000)%MAXCLUSTERTIME),
len,
pSample->IsDiscontinuity() == S_OK ? 1 : 0,
@@ -1254,7 +1254,7 @@ STDMETHODIMP CMatroskaMuxerInputPin::Receive(IMediaSample* pSample) b->ReferenceBlock.Set((rtDiff + (rtDiff >= 0 ? 5000 : -5000)) / 10000);
}
- b->Block.TrackNumber = ((CMatroskaMuxerFilter*)m_pFilter)->GetTrackNumber(this);
+ b->Block.TrackNumber = (static_cast<CMatroskaMuxerFilter*>(m_pFilter))->GetTrackNumber(this);
b->Block.TimeCode = (rtStart + 5000) / 10000;
b->Block.TimeCodeStop = (rtStop + 5000) / 10000;
|