Commit e317164f authored by Alistair Leslie-Hughes's avatar Alistair Leslie-Hughes Committed by Alexandre Julliard

quartz: Output This in TRACE statements.

parent a4641149
...@@ -391,6 +391,8 @@ static IPin* WINAPI AsyncReader_GetPin(BaseFilter *iface, int pos) ...@@ -391,6 +391,8 @@ static IPin* WINAPI AsyncReader_GetPin(BaseFilter *iface, int pos)
{ {
AsyncReader *This = impl_from_BaseFilter(iface); AsyncReader *This = impl_from_BaseFilter(iface);
TRACE("%p->(%d)\n", This, pos);
if (pos >= 1 || !This->pOutputPin) if (pos >= 1 || !This->pOutputPin)
return NULL; return NULL;
...@@ -402,6 +404,8 @@ static LONG WINAPI AsyncReader_GetPinCount(BaseFilter *iface) ...@@ -402,6 +404,8 @@ static LONG WINAPI AsyncReader_GetPinCount(BaseFilter *iface)
{ {
AsyncReader *This = impl_from_BaseFilter(iface); AsyncReader *This = impl_from_BaseFilter(iface);
TRACE("%p->()\n", This);
if (!This->pOutputPin) if (!This->pOutputPin)
return 0; return 0;
else else
...@@ -447,7 +451,7 @@ static HRESULT WINAPI AsyncReader_QueryInterface(IBaseFilter * iface, REFIID rii ...@@ -447,7 +451,7 @@ static HRESULT WINAPI AsyncReader_QueryInterface(IBaseFilter * iface, REFIID rii
{ {
AsyncReader *This = impl_from_IBaseFilter(iface); AsyncReader *This = impl_from_IBaseFilter(iface);
TRACE("(%s, %p)\n", qzdebugstr_guid(riid), ppv); TRACE("%p->(%s, %p)\n", This, qzdebugstr_guid(riid), ppv);
*ppv = NULL; *ppv = NULL;
...@@ -482,7 +486,7 @@ static ULONG WINAPI AsyncReader_Release(IBaseFilter * iface) ...@@ -482,7 +486,7 @@ static ULONG WINAPI AsyncReader_Release(IBaseFilter * iface)
AsyncReader *This = impl_from_IBaseFilter(iface); AsyncReader *This = impl_from_IBaseFilter(iface);
ULONG refCount = InterlockedDecrement(&This->filter.refCount); ULONG refCount = InterlockedDecrement(&This->filter.refCount);
TRACE("(%p)->() Release from %d\n", This, refCount + 1); TRACE("%p->() Release from %d\n", This, refCount + 1);
if (!refCount) if (!refCount)
{ {
...@@ -514,7 +518,7 @@ static HRESULT WINAPI AsyncReader_Stop(IBaseFilter * iface) ...@@ -514,7 +518,7 @@ static HRESULT WINAPI AsyncReader_Stop(IBaseFilter * iface)
{ {
AsyncReader *This = impl_from_IBaseFilter(iface); AsyncReader *This = impl_from_IBaseFilter(iface);
TRACE("()\n"); TRACE("%p->()\n", This);
This->filter.state = State_Stopped; This->filter.state = State_Stopped;
...@@ -525,7 +529,7 @@ static HRESULT WINAPI AsyncReader_Pause(IBaseFilter * iface) ...@@ -525,7 +529,7 @@ static HRESULT WINAPI AsyncReader_Pause(IBaseFilter * iface)
{ {
AsyncReader *This = impl_from_IBaseFilter(iface); AsyncReader *This = impl_from_IBaseFilter(iface);
TRACE("()\n"); TRACE("%p->()\n", This);
This->filter.state = State_Paused; This->filter.state = State_Paused;
...@@ -536,7 +540,7 @@ static HRESULT WINAPI AsyncReader_Run(IBaseFilter * iface, REFERENCE_TIME tStart ...@@ -536,7 +540,7 @@ static HRESULT WINAPI AsyncReader_Run(IBaseFilter * iface, REFERENCE_TIME tStart
{ {
AsyncReader *This = impl_from_IBaseFilter(iface); AsyncReader *This = impl_from_IBaseFilter(iface);
TRACE("(%s)\n", wine_dbgstr_longlong(tStart)); TRACE("%p->(%s)\n", This, wine_dbgstr_longlong(tStart));
This->filter.state = State_Running; This->filter.state = State_Running;
...@@ -548,7 +552,7 @@ static HRESULT WINAPI AsyncReader_Run(IBaseFilter * iface, REFERENCE_TIME tStart ...@@ -548,7 +552,7 @@ static HRESULT WINAPI AsyncReader_Run(IBaseFilter * iface, REFERENCE_TIME tStart
static HRESULT WINAPI AsyncReader_FindPin(IBaseFilter * iface, LPCWSTR Id, IPin **ppPin) static HRESULT WINAPI AsyncReader_FindPin(IBaseFilter * iface, LPCWSTR Id, IPin **ppPin)
{ {
AsyncReader *This = impl_from_IBaseFilter(iface); AsyncReader *This = impl_from_IBaseFilter(iface);
TRACE("(%s, %p)\n", debugstr_w(Id), ppPin); TRACE("%p->(%s, %p)\n", This, debugstr_w(Id), ppPin);
if (!Id || !ppPin) if (!Id || !ppPin)
return E_POINTER; return E_POINTER;
...@@ -611,7 +615,7 @@ static HRESULT WINAPI FileSource_Load(IFileSourceFilter * iface, LPCOLESTR pszFi ...@@ -611,7 +615,7 @@ static HRESULT WINAPI FileSource_Load(IFileSourceFilter * iface, LPCOLESTR pszFi
IAsyncReader * pReader = NULL; IAsyncReader * pReader = NULL;
AsyncReader *This = impl_from_IFileSourceFilter(iface); AsyncReader *This = impl_from_IFileSourceFilter(iface);
TRACE("(%s, %p)\n", debugstr_w(pszFileName), pmt); TRACE("%p->(%s, %p)\n", This, debugstr_w(pszFileName), pmt);
if (!pszFileName) if (!pszFileName)
return E_POINTER; return E_POINTER;
...@@ -692,7 +696,7 @@ static HRESULT WINAPI FileSource_GetCurFile(IFileSourceFilter * iface, LPOLESTR ...@@ -692,7 +696,7 @@ static HRESULT WINAPI FileSource_GetCurFile(IFileSourceFilter * iface, LPOLESTR
{ {
AsyncReader *This = impl_from_IFileSourceFilter(iface); AsyncReader *This = impl_from_IFileSourceFilter(iface);
TRACE("(%p, %p)\n", ppszFileName, pmt); TRACE("%p->(%p, %p)\n", This, ppszFileName, pmt);
if (!ppszFileName) if (!ppszFileName)
return E_POINTER; return E_POINTER;
...@@ -888,7 +892,7 @@ static HRESULT WINAPI FileAsyncReaderPin_AttemptConnection(BasePin * iface, IPin ...@@ -888,7 +892,7 @@ static HRESULT WINAPI FileAsyncReaderPin_AttemptConnection(BasePin * iface, IPin
BaseOutputPin *This = impl_BaseOutputPin_from_BasePin(iface); BaseOutputPin *This = impl_BaseOutputPin_from_BasePin(iface);
HRESULT hr; HRESULT hr;
TRACE("(%p, %p)\n", pReceivePin, pmt); TRACE("%p->(%p, %p)\n", This, pReceivePin, pmt);
dump_AM_MEDIA_TYPE(pmt); dump_AM_MEDIA_TYPE(pmt);
/* FIXME: call queryacceptproc */ /* FIXME: call queryacceptproc */
...@@ -996,7 +1000,7 @@ static HRESULT WINAPI FileAsyncReader_RequestAllocator(IAsyncReader * iface, IMe ...@@ -996,7 +1000,7 @@ static HRESULT WINAPI FileAsyncReader_RequestAllocator(IAsyncReader * iface, IMe
HRESULT hr = S_OK; HRESULT hr = S_OK;
TRACE("(%p, %p, %p)\n", pPreferred, pProps, ppActual); TRACE("%p->(%p, %p, %p)\n", This, pPreferred, pProps, ppActual);
if (!pProps->cbAlign || (pProps->cbAlign % DEF_ALIGNMENT) != 0) if (!pProps->cbAlign || (pProps->cbAlign % DEF_ALIGNMENT) != 0)
pProps->cbAlign = DEF_ALIGNMENT; pProps->cbAlign = DEF_ALIGNMENT;
...@@ -1092,7 +1096,7 @@ static HRESULT WINAPI FileAsyncReader_Request(IAsyncReader * iface, IMediaSample ...@@ -1092,7 +1096,7 @@ static HRESULT WINAPI FileAsyncReader_Request(IAsyncReader * iface, IMediaSample
FileAsyncReader *This = impl_from_IAsyncReader(iface); FileAsyncReader *This = impl_from_IAsyncReader(iface);
LPBYTE pBuffer = NULL; LPBYTE pBuffer = NULL;
TRACE("(%p, %lx)\n", pSample, dwUser); TRACE("%p->(%p, %lx)\n", This, pSample, dwUser);
if (!pSample) if (!pSample)
return E_POINTER; return E_POINTER;
...@@ -1170,7 +1174,7 @@ static HRESULT WINAPI FileAsyncReader_WaitForNext(IAsyncReader * iface, DWORD dw ...@@ -1170,7 +1174,7 @@ static HRESULT WINAPI FileAsyncReader_WaitForNext(IAsyncReader * iface, DWORD dw
FileAsyncReader *This = impl_from_IAsyncReader(iface); FileAsyncReader *This = impl_from_IAsyncReader(iface);
DWORD buffer = ~0; DWORD buffer = ~0;
TRACE("(%u, %p, %p)\n", dwTimeout, ppSample, pdwUser); TRACE("%p->(%u, %p, %p)\n", This, dwTimeout, ppSample, pdwUser);
*ppSample = NULL; *ppSample = NULL;
*pdwUser = 0; *pdwUser = 0;
...@@ -1335,7 +1339,7 @@ static HRESULT WINAPI FileAsyncReader_SyncRead(IAsyncReader * iface, LONGLONG ll ...@@ -1335,7 +1339,7 @@ static HRESULT WINAPI FileAsyncReader_SyncRead(IAsyncReader * iface, LONGLONG ll
HRESULT hr = S_OK; HRESULT hr = S_OK;
FileAsyncReader *This = impl_from_IAsyncReader(iface); FileAsyncReader *This = impl_from_IAsyncReader(iface);
TRACE("(%s, %d, %p)\n", wine_dbgstr_longlong(llPosition), lLength, pBuffer); TRACE("%p->(%s, %d, %p)\n", This, wine_dbgstr_longlong(llPosition), lLength, pBuffer);
ZeroMemory(&ovl, sizeof(ovl)); ZeroMemory(&ovl, sizeof(ovl));
...@@ -1370,7 +1374,7 @@ static HRESULT WINAPI FileAsyncReader_Length(IAsyncReader * iface, LONGLONG * pT ...@@ -1370,7 +1374,7 @@ static HRESULT WINAPI FileAsyncReader_Length(IAsyncReader * iface, LONGLONG * pT
DWORD dwSizeHigh; DWORD dwSizeHigh;
FileAsyncReader *This = impl_from_IAsyncReader(iface); FileAsyncReader *This = impl_from_IAsyncReader(iface);
TRACE("(%p, %p)\n", pTotal, pAvailable); TRACE("%p->(%p, %p)\n", This, pTotal, pAvailable);
if (((dwSizeLow = GetFileSize(This->hFile, &dwSizeHigh)) == -1) && if (((dwSizeLow = GetFileSize(This->hFile, &dwSizeHigh)) == -1) &&
(GetLastError() != NO_ERROR)) (GetLastError() != NO_ERROR))
...@@ -1387,7 +1391,7 @@ static HRESULT WINAPI FileAsyncReader_BeginFlush(IAsyncReader * iface) ...@@ -1387,7 +1391,7 @@ static HRESULT WINAPI FileAsyncReader_BeginFlush(IAsyncReader * iface)
{ {
FileAsyncReader *This = impl_from_IAsyncReader(iface); FileAsyncReader *This = impl_from_IAsyncReader(iface);
TRACE("()\n"); TRACE("%p->()\n", This);
EnterCriticalSection(&This->csList); EnterCriticalSection(&This->csList);
This->bFlushing = TRUE; This->bFlushing = TRUE;
...@@ -1403,7 +1407,7 @@ static HRESULT WINAPI FileAsyncReader_EndFlush(IAsyncReader * iface) ...@@ -1403,7 +1407,7 @@ static HRESULT WINAPI FileAsyncReader_EndFlush(IAsyncReader * iface)
FileAsyncReader *This = impl_from_IAsyncReader(iface); FileAsyncReader *This = impl_from_IAsyncReader(iface);
int x; int x;
TRACE("()\n"); TRACE("%p->()\n", This);
EnterCriticalSection(&This->csList); EnterCriticalSection(&This->csList);
ResetEvent(This->handle_list[This->samples]); ResetEvent(This->handle_list[This->samples]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment