summaryrefslogtreecommitdiff
path: root/avstream/sampledevicemft/mftpeventgenerator.cpp
diff options
context:
space:
mode:
authorsaredd <[email protected]>2018-01-19 17:19:00 -0800
committerWei Mao <[email protected]>2018-01-19 17:19:00 -0800
commit6e7c8cb437135e55917c34cfebe1be944bbf6d3f (patch)
treef7570fe170194facd45e4f9f887ff56dc683a31c /avstream/sampledevicemft/mftpeventgenerator.cpp
parentdd7e6f697ed67e94dc45cd33078b1dbcb643f439 (diff)
Updating Camera WDK Samples to RS3 version (#193)
Diffstat (limited to 'avstream/sampledevicemft/mftpeventgenerator.cpp')
-rw-r--r--avstream/sampledevicemft/mftpeventgenerator.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/avstream/sampledevicemft/mftpeventgenerator.cpp b/avstream/sampledevicemft/mftpeventgenerator.cpp
index 72b395ff..1e510cfa 100644
--- a/avstream/sampledevicemft/mftpeventgenerator.cpp
+++ b/avstream/sampledevicemft/mftpeventgenerator.cpp
@@ -11,8 +11,6 @@
#include "mftpeventgenerator.h"
-#define TP_SCOPE_TRACE TP_NORMAL
-#define DH_THIS_FILE DH_DEVPROXY
#ifdef MF_WPP
#include "mftpeventgenerator.tmh" //--REF_ANALYZER_DONT_REMOVE--
@@ -72,11 +70,8 @@ STDMETHODIMP CMediaEventGenerator::QueryInterface(
else
{
hr = E_NOINTERFACE;
- DMFTCHECKHR_GOTO(hr, done);
}
-done:
-
return hr;
}
@@ -89,7 +84,6 @@ STDMETHODIMP CMediaEventGenerator::BeginGetEvent(
)
{
HRESULT hr = S_OK;
- //MFWMITRACE(DH_THIS_FILE, TP_NORMAL, __FUNCTION__ " : MultiPinMFT BeginGetEvent called");
m_critSec.Lock();
hr = CheckShutdown();
@@ -110,7 +104,6 @@ STDMETHODIMP CMediaEventGenerator::EndGetEvent(
)
{
HRESULT hr = S_OK;
- //MFWMITRACE(DH_THIS_FILE, TP_NORMAL, __FUNCTION__ " : MultiPinMFT EndGetEvent called");
m_critSec.Lock();
hr = CheckShutdown();
@@ -135,7 +128,6 @@ STDMETHODIMP CMediaEventGenerator::GetEvent(
// a slightly different locking strategy.
//
HRESULT hr = S_OK;
- //MFWMITRACE(DH_THIS_FILE, TP_NORMAL, __FUNCTION__ " : MultiPinMFT GetEvent called");
IMFMediaEventQueue *pQueue = NULL;
m_critSec.Lock();
@@ -168,7 +160,6 @@ STDMETHODIMP CMediaEventGenerator::QueueEvent(
)
{
HRESULT hr = S_OK;
- //MFWMITRACE(DH_THIS_FILE, TP_NORMAL, __FUNCTION__ " : MultiPinMFT QueueEvent called");
m_critSec.Lock();
hr = CheckShutdown();
@@ -195,7 +186,6 @@ STDMETHODIMP CMediaEventGenerator::ShutdownEventGenerator(
{
HRESULT hr = S_OK;
- // MFWMITRACE( DH_THIS_FILE, TP_LOWEST, __FUNCTION__ " : entering ...");
m_critSec.Lock();
@@ -206,15 +196,12 @@ STDMETHODIMP CMediaEventGenerator::ShutdownEventGenerator(
if (m_pQueue)
{
hr = m_pQueue->Shutdown();
- //MFWMITRACE( DH_THIS_FILE, TP_NORMAL, __FUNCTION__ "Event Generator Queue shutdown hr = %x", hr);
}
SAFE_RELEASE(m_pQueue);
m_bShutdown = TRUE;
}
m_critSec.Unlock();
- // MFWMITRACE( DH_THIS_FILE, TP_LOWEST, __FUNCTION__ " : exiting...");
-
return hr;
}
@@ -223,7 +210,6 @@ STDMETHODIMP CMediaEventGenerator::QueueEvent(
)
{
HRESULT hr = S_OK;
- //MFWMITRACE(DH_THIS_FILE, TP_LOWEST, __FUNCTION__ " : QueueEvent 1 ...");
m_critSec.Lock();
hr = CheckShutdown();
@@ -245,6 +231,4 @@ CMediaEventGenerator::~CMediaEventGenerator (
)
{
ShutdownEventGenerator();
- //MFASSERT(m_bShutdown);
- //MFASSERT(m_nRefCount == 0);
}