diff options
author | XhmikosR <xhmikosr@users.sourceforge.net> | 2013-10-02 19:14:05 +0400 |
---|---|---|
committer | Underground78 <underground78@users.sourceforge.net> | 2013-10-19 20:43:10 +0400 |
commit | a6062f8ede383fd09bd567b3427621a97419a61d (patch) | |
tree | e67168f6165e9442f665fec9f3580e20c81da5aa | |
parent | 91490dc547d4a8af9822872d61529dff214ebb31 (diff) |
Be consistent with the var type.
-rw-r--r-- | src/mpc-hc/MainFrm.cpp | 2 | ||||
-rw-r--r-- | src/mpc-hc/PPageFileInfoDetails.cpp | 2 | ||||
-rw-r--r-- | src/mpc-hc/WebClientSocket.cpp | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/mpc-hc/MainFrm.cpp b/src/mpc-hc/MainFrm.cpp index c503678c6..189c27e10 100644 --- a/src/mpc-hc/MainFrm.cpp +++ b/src/mpc-hc/MainFrm.cpp @@ -3455,7 +3455,7 @@ void CMainFrame::OnUpdatePlayerStatus(CCmdUI* pCmdUI) if (pMuxMS && SUCCEEDED(pMuxMS->GetCurrentPosition(&pos)) && pos > 0) {
double bytepersec = 10000000.0 * size / pos;
if (bytepersec > 0) {
- m_rtDurationOverride = __int64(10000000.0 * (FreeBytesAvailable.QuadPart + size) / bytepersec);
+ m_rtDurationOverride = REFERENCE_TIME(10000000.0 * (FreeBytesAvailable.QuadPart + size) / bytepersec);
}
}
}
diff --git a/src/mpc-hc/PPageFileInfoDetails.cpp b/src/mpc-hc/PPageFileInfoDetails.cpp index 77222f666..8b1f5c9c8 100644 --- a/src/mpc-hc/PPageFileInfoDetails.cpp +++ b/src/mpc-hc/PPageFileInfoDetails.cpp @@ -93,7 +93,7 @@ CPPageFileInfoDetails::CPPageFileInfoDetails(CString path, IFilterGraph* pFG, IS }
}
- __int64 size = 0;
+ LONGLONG size = 0;
if (CComQIPtr<IBaseFilter> pBF = pFSF) {
BeginEnumPins(pBF, pEP, pPin) {
if (CComQIPtr<IAsyncReader> pAR = pPin) {
diff --git a/src/mpc-hc/WebClientSocket.cpp b/src/mpc-hc/WebClientSocket.cpp index 9e0344811..cbd0c1e0d 100644 --- a/src/mpc-hc/WebClientSocket.cpp +++ b/src/mpc-hc/WebClientSocket.cpp @@ -453,7 +453,7 @@ bool CWebClientSocket::OnInfo(CStringA& hdr, CStringA& body, CStringA& mime) CPath file(m_pMainFrame->GetFileName());
file.RemoveExtension();
- __int64 size = 0;
+ LONGLONG size = 0;
if (CComQIPtr<IBaseFilter> pBF = m_pMainFrame->m_pFSF) {
BeginEnumPins(pBF, pEP, pPin) {
if (CComQIPtr<IAsyncReader> pAR = pPin) {
@@ -472,7 +472,7 @@ bool CWebClientSocket::OnInfo(CStringA& hdr, CStringA& body, CStringA& mime) HANDLE hFind = FindFirstFile(m_pMainFrame->m_wndPlaylistBar.GetCurFileName(), &wfd);
if (hFind != INVALID_HANDLE_VALUE) {
FindClose(hFind);
- size = (__int64(wfd.nFileSizeHigh) << 32) | wfd.nFileSizeLow;
+ size = (LONGLONG(wfd.nFileSizeHigh) << 32) | wfd.nFileSizeLow;
}
}
|