diff options
author | kinddragon <kinddragon@users.sourceforge.net> | 2010-04-29 04:57:33 +0400 |
---|---|---|
committer | kinddragon <kinddragon@users.sourceforge.net> | 2010-04-29 04:57:33 +0400 |
commit | e302cbb90369999186f60362baad9ebaa02f445e (patch) | |
tree | 5f35a8aae9b4b2b52779d511b8554b4e56156412 /src/apps/mplayerc | |
parent | 25d1ca947c7254d3b2bc5d8e6246119936bf4788 (diff) |
More threads names added for simplifying debugging
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@1821 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/apps/mplayerc')
-rw-r--r-- | src/apps/mplayerc/DX9AllocatorPresenter.cpp | 3 | ||||
-rw-r--r-- | src/apps/mplayerc/VMR9AllocatorPresenter.cpp | 4 |
2 files changed, 2 insertions, 5 deletions
diff --git a/src/apps/mplayerc/DX9AllocatorPresenter.cpp b/src/apps/mplayerc/DX9AllocatorPresenter.cpp index 5545b7aee..07ec23e24 100644 --- a/src/apps/mplayerc/DX9AllocatorPresenter.cpp +++ b/src/apps/mplayerc/DX9AllocatorPresenter.cpp @@ -1000,8 +1000,7 @@ HRESULT CDX9AllocatorPresenter::CreateDevice(CString &_Error) m_bAlternativeVSync = s.m_RenderSettings.fVMR9AlterativeVSync;
m_bHighColorResolution = s.m_RenderSettings.iEVRHighColorResolution && m_bIsEVR;
-
- SetThreadName (-1, "D3D9PresenterThread");
+
if (m_bIsFullscreen)
{
pp.Windowed = false;
diff --git a/src/apps/mplayerc/VMR9AllocatorPresenter.cpp b/src/apps/mplayerc/VMR9AllocatorPresenter.cpp index 612f79e8b..56e3c512a 100644 --- a/src/apps/mplayerc/VMR9AllocatorPresenter.cpp +++ b/src/apps/mplayerc/VMR9AllocatorPresenter.cpp @@ -710,7 +710,6 @@ STDMETHODIMP_(void) CVMR9AllocatorPresenter::SetTime(REFERENCE_TIME rtNow) STDMETHODIMP CVMR9AllocatorPresenter::InitializeDevice(DWORD_PTR dwUserID, VMR9AllocationInfo* lpAllocInfo, DWORD* lpNumBuffers)
{
-
if(!lpAllocInfo || !lpNumBuffers)
return E_POINTER;
@@ -850,6 +849,7 @@ STDMETHODIMP CVMR9AllocatorPresenter::StopPresenting(DWORD_PTR dwUserID) STDMETHODIMP CVMR9AllocatorPresenter::PresentImage(DWORD_PTR dwUserID, VMR9PresentationInfo* lpPresInfo)
{
+ SetThreadName(-1, "CVMR9AllocatorPresenter");
CheckPointer(m_pIVMRSurfAllocNotify, E_UNEXPECTED);
m_MainThreadId = GetCurrentThreadId();
@@ -913,8 +913,6 @@ STDMETHODIMP CVMR9AllocatorPresenter::PresentImage(DWORD_PTR dwUserID, VMR9Prese if (m_rtTimePerFrame == 0) m_rtTimePerFrame = 417166;
m_fps = 10000000.0 / m_rtTimePerFrame;
-
-
}
HRESULT hr;
|