diff options
author | Underground78 <underground78@users.sourceforge.net> | 2013-11-03 17:21:24 +0400 |
---|---|---|
committer | Underground78 <underground78@users.sourceforge.net> | 2013-11-21 02:08:49 +0400 |
commit | bda162010123413744a45ea51aa858febe58f999 (patch) | |
tree | 70c879de676e9cb1c68a02151366cbafa8c3f586 /src/filters | |
parent | b6f757f7bfe71ddaa3ca5f99e178b74047a4877c (diff) |
Use conversion constructors to work-around confusing AStyle styling.
Diffstat (limited to 'src/filters')
6 files changed, 8 insertions, 8 deletions
diff --git a/src/filters/parser/BaseSplitter/BaseSplitter.cpp b/src/filters/parser/BaseSplitter/BaseSplitter.cpp index 11e53f41d..111daf53e 100644 --- a/src/filters/parser/BaseSplitter/BaseSplitter.cpp +++ b/src/filters/parser/BaseSplitter/BaseSplitter.cpp @@ -442,7 +442,7 @@ bool CBaseSplitterOutputPin::IsActive() DWORD CBaseSplitterOutputPin::ThreadProc()
{
- SetThreadName((DWORD) - 1, "CBaseSplitterOutputPin");
+ SetThreadName(DWORD(-1), "CBaseSplitterOutputPin");
m_hrDeliver = S_OK;
m_fFlushing = m_fFlushed = false;
m_eEndFlush.Set();
diff --git a/src/filters/parser/DSMSplitter/DSMSplitter.cpp b/src/filters/parser/DSMSplitter/DSMSplitter.cpp index d4941f88f..8bf7f9363 100644 --- a/src/filters/parser/DSMSplitter/DSMSplitter.cpp +++ b/src/filters/parser/DSMSplitter/DSMSplitter.cpp @@ -212,7 +212,7 @@ HRESULT CDSMSplitterFilter::CreateOutputs(IAsyncReader* pAsyncReader) bool CDSMSplitterFilter::DemuxInit()
{
- SetThreadName((DWORD) - 1, "CDSMSplitterFilter");
+ SetThreadName(DWORD(-1), "CDSMSplitterFilter");
return true;
}
diff --git a/src/filters/renderer/VideoRenderers/EVRAllocatorPresenter.cpp b/src/filters/renderer/VideoRenderers/EVRAllocatorPresenter.cpp index 8ee3c1743..b86a47207 100644 --- a/src/filters/renderer/VideoRenderers/EVRAllocatorPresenter.cpp +++ b/src/filters/renderer/VideoRenderers/EVRAllocatorPresenter.cpp @@ -1548,7 +1548,7 @@ STDMETHODIMP CEVRAllocatorPresenter::InitializeDevice(IMFMediaType* pMediaType) DWORD WINAPI CEVRAllocatorPresenter::GetMixerThreadStatic(LPVOID lpParam)
{
- SetThreadName((DWORD) - 1, "CEVRPresenter::MixerThread");
+ SetThreadName(DWORD(-1), "CEVRPresenter::MixerThread");
CEVRAllocatorPresenter* pThis = (CEVRAllocatorPresenter*) lpParam;
pThis->GetMixerThread();
return 0;
@@ -1556,7 +1556,7 @@ DWORD WINAPI CEVRAllocatorPresenter::GetMixerThreadStatic(LPVOID lpParam) DWORD WINAPI CEVRAllocatorPresenter::PresentThread(LPVOID lpParam)
{
- SetThreadName((DWORD) - 1, "CEVRPresenter::PresentThread");
+ SetThreadName(DWORD(-1), "CEVRPresenter::PresentThread");
CEVRAllocatorPresenter* pThis = (CEVRAllocatorPresenter*) lpParam;
pThis->RenderThread();
return 0;
@@ -2514,7 +2514,7 @@ void CEVRAllocatorPresenter::VSyncThread() DWORD WINAPI CEVRAllocatorPresenter::VSyncThreadStatic(LPVOID lpParam)
{
- SetThreadName((DWORD) - 1, "CEVRAllocatorPresenter::VSyncThread");
+ SetThreadName(DWORD(-1), "CEVRAllocatorPresenter::VSyncThread");
CEVRAllocatorPresenter* pThis = (CEVRAllocatorPresenter*) lpParam;
pThis->VSyncThread();
return 0;
diff --git a/src/filters/renderer/VideoRenderers/FocusThread.cpp b/src/filters/renderer/VideoRenderers/FocusThread.cpp index e7f107751..516d42f99 100644 --- a/src/filters/renderer/VideoRenderers/FocusThread.cpp +++ b/src/filters/renderer/VideoRenderers/FocusThread.cpp @@ -70,7 +70,7 @@ CFocusThread::~CFocusThread() BOOL CFocusThread::InitInstance() { - SetThreadName((DWORD) - 1, "FocusThread"); + SetThreadName(DWORD(-1), "FocusThread"); m_hWnd = CreateWindow(_T("D3DFocusClass"), _T("D3D Focus Window"), WS_OVERLAPPED, 0, 0, 0, 0, nullptr, nullptr, nullptr, nullptr); SetEvent(m_hEvtInit); if (!m_hWnd) { diff --git a/src/filters/renderer/VideoRenderers/VMR7AllocatorPresenter.cpp b/src/filters/renderer/VideoRenderers/VMR7AllocatorPresenter.cpp index 2c6dcf417..2b6d231ae 100644 --- a/src/filters/renderer/VideoRenderers/VMR7AllocatorPresenter.cpp +++ b/src/filters/renderer/VideoRenderers/VMR7AllocatorPresenter.cpp @@ -199,7 +199,7 @@ STDMETHODIMP CVMR7AllocatorPresenter::FreeSurface(DWORD_PTR dwUserID) STDMETHODIMP CVMR7AllocatorPresenter::PrepareSurface(DWORD_PTR dwUserID, IDirectDrawSurface7* lpSurface, DWORD dwSurfaceFlags)
{
- SetThreadName((DWORD) - 1, "CVMR7AllocatorPresenter");
+ SetThreadName(DWORD(-1), "CVMR7AllocatorPresenter");
if (!lpSurface) {
return E_POINTER;
diff --git a/src/filters/renderer/VideoRenderers/VMR9AllocatorPresenter.cpp b/src/filters/renderer/VideoRenderers/VMR9AllocatorPresenter.cpp index 0dba763ce..694c8f28e 100644 --- a/src/filters/renderer/VideoRenderers/VMR9AllocatorPresenter.cpp +++ b/src/filters/renderer/VideoRenderers/VMR9AllocatorPresenter.cpp @@ -337,7 +337,7 @@ STDMETHODIMP CVMR9AllocatorPresenter::StopPresenting(DWORD_PTR dwUserID) STDMETHODIMP CVMR9AllocatorPresenter::PresentImage(DWORD_PTR dwUserID, VMR9PresentationInfo* lpPresInfo)
{
- SetThreadName((DWORD) - 1, "CVMR9AllocatorPresenter");
+ SetThreadName(DWORD(-1), "CVMR9AllocatorPresenter");
CheckPointer(m_pIVMRSurfAllocNotify, E_UNEXPECTED);
if (m_rtTimePerFrame == 0 || m_bNeedCheckSample) {
|