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 | |
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')
-rw-r--r-- | src/apps/mplayerc/DX9AllocatorPresenter.cpp | 3 | ||||
-rw-r--r-- | src/apps/mplayerc/VMR9AllocatorPresenter.cpp | 4 | ||||
-rw-r--r-- | src/filters/parser/AviSplitter/AviSplitter.cpp | 2 | ||||
-rw-r--r-- | src/filters/parser/BaseSplitter/BaseSplitter.cpp | 1 | ||||
-rw-r--r-- | src/filters/parser/DSMSplitter/DSMSplitter.cpp | 1 | ||||
-rw-r--r-- | src/filters/parser/DiracSplitter/DiracSplitter.cpp | 1 | ||||
-rw-r--r-- | src/filters/parser/FLVSplitter/FLVSplitter.cpp | 1 | ||||
-rw-r--r-- | src/filters/parser/MP4Splitter/MP4Splitter.cpp | 2 | ||||
-rw-r--r-- | src/filters/parser/MatroskaSplitter/MatroskaSplitter.cpp | 2 | ||||
-rw-r--r-- | src/filters/parser/MpaSplitter/MpaSplitter.cpp | 1 | ||||
-rw-r--r-- | src/filters/parser/MpegSplitter/MpegSplitter.cpp | 1 | ||||
-rw-r--r-- | src/filters/parser/NutSplitter/NutSplitter.cpp | 1 | ||||
-rw-r--r-- | src/filters/parser/OggSplitter/OggSplitter.cpp | 1 | ||||
-rw-r--r-- | src/filters/parser/RealMediaSplitter/RealMediaSplitter.cpp | 2 | ||||
-rw-r--r-- | src/filters/parser/RoQSplitter/RoQSplitter.cpp | 1 | ||||
-rw-r--r-- | src/filters/parser/SSFSplitter/SSFSplitter.cpp | 1 |
16 files changed, 20 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;
diff --git a/src/filters/parser/AviSplitter/AviSplitter.cpp b/src/filters/parser/AviSplitter/AviSplitter.cpp index d31561221..4c6e4e213 100644 --- a/src/filters/parser/AviSplitter/AviSplitter.cpp +++ b/src/filters/parser/AviSplitter/AviSplitter.cpp @@ -338,6 +338,8 @@ HRESULT CAviSplitterFilter::CreateOutputs(IAsyncReader* pAsyncReader) bool CAviSplitterFilter::DemuxInit()
{
+ SetThreadName(-1, "CAviSplitterFilter");
+
if(!m_pFile) return(false);
// reindex if needed
diff --git a/src/filters/parser/BaseSplitter/BaseSplitter.cpp b/src/filters/parser/BaseSplitter/BaseSplitter.cpp index 1a57ed507..ebd29f347 100644 --- a/src/filters/parser/BaseSplitter/BaseSplitter.cpp +++ b/src/filters/parser/BaseSplitter/BaseSplitter.cpp @@ -412,6 +412,7 @@ bool CBaseSplitterOutputPin::IsActive() DWORD CBaseSplitterOutputPin::ThreadProc()
{
+ SetThreadName(-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 300a3cf7a..bad3728e5 100644 --- a/src/filters/parser/DSMSplitter/DSMSplitter.cpp +++ b/src/filters/parser/DSMSplitter/DSMSplitter.cpp @@ -179,6 +179,7 @@ HRESULT CDSMSplitterFilter::CreateOutputs(IAsyncReader* pAsyncReader) bool CDSMSplitterFilter::DemuxInit()
{
+ SetThreadName(-1, "CDSMSplitterFilter");
return true;
}
diff --git a/src/filters/parser/DiracSplitter/DiracSplitter.cpp b/src/filters/parser/DiracSplitter/DiracSplitter.cpp index db544603f..450eb81bb 100644 --- a/src/filters/parser/DiracSplitter/DiracSplitter.cpp +++ b/src/filters/parser/DiracSplitter/DiracSplitter.cpp @@ -137,6 +137,7 @@ HRESULT CDiracSplitterFilter::CreateOutputs(IAsyncReader* pAsyncReader) bool CDiracSplitterFilter::DemuxInit()
{
+ SetThreadName(-1, "CDiracSplitterFilter");
if(!m_pFile) return(false);
// TODO
diff --git a/src/filters/parser/FLVSplitter/FLVSplitter.cpp b/src/filters/parser/FLVSplitter/FLVSplitter.cpp index 98fdbcbef..f68083b9f 100644 --- a/src/filters/parser/FLVSplitter/FLVSplitter.cpp +++ b/src/filters/parser/FLVSplitter/FLVSplitter.cpp @@ -569,6 +569,7 @@ HRESULT CFLVSplitterFilter::CreateOutputs(IAsyncReader* pAsyncReader) bool CFLVSplitterFilter::DemuxInit()
{
+ SetThreadName(-1, "CFLVSplitterFilter");
return true;
}
diff --git a/src/filters/parser/MP4Splitter/MP4Splitter.cpp b/src/filters/parser/MP4Splitter/MP4Splitter.cpp index cd5f370cf..87e18e851 100644 --- a/src/filters/parser/MP4Splitter/MP4Splitter.cpp +++ b/src/filters/parser/MP4Splitter/MP4Splitter.cpp @@ -692,6 +692,7 @@ HRESULT CMP4SplitterFilter::CreateOutputs(IAsyncReader* pAsyncReader) bool CMP4SplitterFilter::DemuxInit()
{
+ SetThreadName(-1, "CMP4SplitterFilter");
AP4_Movie* movie = (AP4_Movie*)m_pFile->GetMovie();
POSITION pos = m_trackpos.GetStartPosition();
@@ -1520,6 +1521,7 @@ HRESULT CMPEG4VideoSplitterFilter::CreateOutputs(IAsyncReader* pAsyncReader) bool CMPEG4VideoSplitterFilter::DemuxInit()
{
+ SetThreadName(-1, "CMPEG4VideoSplitterFilter");
return true;
}
diff --git a/src/filters/parser/MatroskaSplitter/MatroskaSplitter.cpp b/src/filters/parser/MatroskaSplitter/MatroskaSplitter.cpp index 3922eda99..80020f820 100644 --- a/src/filters/parser/MatroskaSplitter/MatroskaSplitter.cpp +++ b/src/filters/parser/MatroskaSplitter/MatroskaSplitter.cpp @@ -807,6 +807,8 @@ void CMatroskaSplitterFilter::SendVorbisHeaderSample() bool CMatroskaSplitterFilter::DemuxInit()
{
+ SetThreadName(-1, "CMatroskaSplitterFilter");
+
CMatroskaNode Root(m_pFile);
if(!m_pFile
|| !(m_pSegment = Root.Child(0x18538067))
diff --git a/src/filters/parser/MpaSplitter/MpaSplitter.cpp b/src/filters/parser/MpaSplitter/MpaSplitter.cpp index bf0e20e91..20e748f75 100644 --- a/src/filters/parser/MpaSplitter/MpaSplitter.cpp +++ b/src/filters/parser/MpaSplitter/MpaSplitter.cpp @@ -135,6 +135,7 @@ STDMETHODIMP CMpaSplitterFilter::GetDuration(LONGLONG* pDuration) bool CMpaSplitterFilter::DemuxInit()
{
+ SetThreadName(-1, "CMpaSplitterFilter");
if(!m_pFile) return(false);
// TODO
diff --git a/src/filters/parser/MpegSplitter/MpegSplitter.cpp b/src/filters/parser/MpegSplitter/MpegSplitter.cpp index 732f23068..d773abdcc 100644 --- a/src/filters/parser/MpegSplitter/MpegSplitter.cpp +++ b/src/filters/parser/MpegSplitter/MpegSplitter.cpp @@ -374,6 +374,7 @@ HRESULT CMpegSplitterFilter::CreateOutputs(IAsyncReader* pAsyncReader) bool CMpegSplitterFilter::DemuxInit()
{
+ SetThreadName(-1, "CMpegSplitterFilter");
if(!m_pFile) return(false);
m_rtStartOffset = 0;
diff --git a/src/filters/parser/NutSplitter/NutSplitter.cpp b/src/filters/parser/NutSplitter/NutSplitter.cpp index 56b1f81c1..3938bd5e9 100644 --- a/src/filters/parser/NutSplitter/NutSplitter.cpp +++ b/src/filters/parser/NutSplitter/NutSplitter.cpp @@ -165,6 +165,7 @@ HRESULT CNutSplitterFilter::CreateOutputs(IAsyncReader* pAsyncReader) bool CNutSplitterFilter::DemuxInit()
{
+ SetThreadName(-1, "CNutSplitterFilter");
if(!m_pFile) return(false);
m_pFile->Seek(0);
return(true);
diff --git a/src/filters/parser/OggSplitter/OggSplitter.cpp b/src/filters/parser/OggSplitter/OggSplitter.cpp index 9dbb2e456..f13ae5c17 100644 --- a/src/filters/parser/OggSplitter/OggSplitter.cpp +++ b/src/filters/parser/OggSplitter/OggSplitter.cpp @@ -347,6 +347,7 @@ HRESULT COggSplitterFilter::CreateOutputs(IAsyncReader* pAsyncReader) bool COggSplitterFilter::DemuxInit()
{
+ SetThreadName(-1, "COggSplitterFilter");
if(!m_pFile) return(false);
return(true);
diff --git a/src/filters/parser/RealMediaSplitter/RealMediaSplitter.cpp b/src/filters/parser/RealMediaSplitter/RealMediaSplitter.cpp index e133b8435..f2c04c8a7 100644 --- a/src/filters/parser/RealMediaSplitter/RealMediaSplitter.cpp +++ b/src/filters/parser/RealMediaSplitter/RealMediaSplitter.cpp @@ -492,6 +492,8 @@ HRESULT CRealMediaSplitterFilter::CreateOutputs(IAsyncReader* pAsyncReader) bool CRealMediaSplitterFilter::DemuxInit()
{
+ SetThreadName(-1, "CRealMediaSplitterFilter");
+
if(!m_pFile) return(false);
// reindex if needed
diff --git a/src/filters/parser/RoQSplitter/RoQSplitter.cpp b/src/filters/parser/RoQSplitter/RoQSplitter.cpp index 78545aef3..c909b8168 100644 --- a/src/filters/parser/RoQSplitter/RoQSplitter.cpp +++ b/src/filters/parser/RoQSplitter/RoQSplitter.cpp @@ -239,6 +239,7 @@ HRESULT CRoQSplitterFilter::CreateOutputs(IAsyncReader* pAsyncReader) bool CRoQSplitterFilter::DemuxInit()
{
+ SetThreadName(-1, "CRoQSplitterFilter");
m_indexpos = m_index.GetHeadPosition();
return(true);
diff --git a/src/filters/parser/SSFSplitter/SSFSplitter.cpp b/src/filters/parser/SSFSplitter/SSFSplitter.cpp index d4cafd14e..b273aed2e 100644 --- a/src/filters/parser/SSFSplitter/SSFSplitter.cpp +++ b/src/filters/parser/SSFSplitter/SSFSplitter.cpp @@ -204,6 +204,7 @@ HRESULT CSSFSplitterFilter::CreateOutputs(IAsyncReader* pAsyncReader) bool CSSFSplitterFilter::DemuxInit()
{
+ SetThreadName(-1, "CSSFSplitterFilter");
return true;
}
|