quartz: Improve reference traces.

This commit is contained in:
Chris Robinson 2007-03-05 06:11:37 -08:00 committed by Alexandre Julliard
parent b3fb3a6739
commit 0717c96192
5 changed files with 12 additions and 10 deletions

View file

@ -394,7 +394,7 @@ static ULONG WINAPI DSoundRender_Release(IBaseFilter * iface)
DSoundRenderImpl *This = (DSoundRenderImpl *)iface; DSoundRenderImpl *This = (DSoundRenderImpl *)iface;
ULONG refCount = InterlockedDecrement(&This->refCount); ULONG refCount = InterlockedDecrement(&This->refCount);
TRACE("(%p/%p)->() Release from %d\n", This, iface, refCount + 1); TRACE("(%p)->() Release from %d\n", This, refCount + 1);
if (!refCount) if (!refCount)
{ {

View file

@ -47,6 +47,8 @@ HRESULT IEnumPinsImpl_Construct(const ENUMPINDETAILS * pDetails, IEnumPins ** pp
pEnumPins->uIndex = 0; pEnumPins->uIndex = 0;
CopyMemory(&pEnumPins->enumPinDetails, pDetails, sizeof(ENUMPINDETAILS)); CopyMemory(&pEnumPins->enumPinDetails, pDetails, sizeof(ENUMPINDETAILS));
*ppEnum = (IEnumPins *)(&pEnumPins->lpVtbl); *ppEnum = (IEnumPins *)(&pEnumPins->lpVtbl);
TRACE("Created new enumerator (%p)\n", *ppEnum);
return S_OK; return S_OK;
} }
@ -77,7 +79,7 @@ static ULONG WINAPI IEnumPinsImpl_AddRef(IEnumPins * iface)
IEnumPinsImpl *This = (IEnumPinsImpl *)iface; IEnumPinsImpl *This = (IEnumPinsImpl *)iface;
ULONG refCount = InterlockedIncrement(&This->refCount); ULONG refCount = InterlockedIncrement(&This->refCount);
TRACE("()\n"); TRACE("(%p)->() AddRef from %d\n", This, refCount - 1);
return refCount; return refCount;
} }
@ -87,7 +89,7 @@ static ULONG WINAPI IEnumPinsImpl_Release(IEnumPins * iface)
IEnumPinsImpl *This = (IEnumPinsImpl *)iface; IEnumPinsImpl *This = (IEnumPinsImpl *)iface;
ULONG refCount = InterlockedDecrement(&This->refCount); ULONG refCount = InterlockedDecrement(&This->refCount);
TRACE("()\n"); TRACE("(%p)->() Release from %d\n", This, refCount + 1);
if (!refCount) if (!refCount)
{ {

View file

@ -362,7 +362,7 @@ static ULONG WINAPI AsyncReader_AddRef(IBaseFilter * iface)
AsyncReader *This = (AsyncReader *)iface; AsyncReader *This = (AsyncReader *)iface;
ULONG refCount = InterlockedIncrement(&This->refCount); ULONG refCount = InterlockedIncrement(&This->refCount);
TRACE("(%p/%p)->() AddRef from %d\n", This, iface, refCount - 1); TRACE("(%p)->() AddRef from %d\n", This, refCount - 1);
return refCount; return refCount;
} }
@ -372,7 +372,7 @@ static ULONG WINAPI AsyncReader_Release(IBaseFilter * iface)
AsyncReader *This = (AsyncReader *)iface; AsyncReader *This = (AsyncReader *)iface;
ULONG refCount = InterlockedDecrement(&This->refCount); ULONG refCount = InterlockedDecrement(&This->refCount);
TRACE("(%p/%p)->() Release from %d\n", This, iface, refCount + 1); TRACE("(%p)->() Release from %d\n", This, refCount + 1);
if (!refCount) if (!refCount)
{ {
@ -751,7 +751,7 @@ static ULONG WINAPI FileAsyncReaderPin_Release(IPin * iface)
FileAsyncReader *This = (FileAsyncReader *)iface; FileAsyncReader *This = (FileAsyncReader *)iface;
ULONG refCount = InterlockedDecrement(&This->pin.pin.refCount); ULONG refCount = InterlockedDecrement(&This->pin.pin.refCount);
TRACE("()\n"); TRACE("(%p)->() Release from %d\n", This, refCount + 1);
if (!refCount) if (!refCount)
{ {

View file

@ -228,7 +228,7 @@ static ULONG WINAPI FilterMapper2_AddRef(IFilterMapper2 * iface)
FilterMapper2Impl *This = (FilterMapper2Impl *)iface; FilterMapper2Impl *This = (FilterMapper2Impl *)iface;
ULONG refCount = InterlockedIncrement(&This->refCount); ULONG refCount = InterlockedIncrement(&This->refCount);
TRACE("(%p)->()\n", iface); TRACE("(%p)->() AddRef from %d\n", This, refCount - 1);
return refCount; return refCount;
} }
@ -238,7 +238,7 @@ static ULONG WINAPI FilterMapper2_Release(IFilterMapper2 * iface)
FilterMapper2Impl *This = (FilterMapper2Impl *)iface; FilterMapper2Impl *This = (FilterMapper2Impl *)iface;
ULONG refCount = InterlockedDecrement(&This->refCount); ULONG refCount = InterlockedDecrement(&This->refCount);
TRACE("(%p)->()\n", iface); TRACE("(%p)->() Release from %d\n", This, refCount + 1);
if (refCount == 0) if (refCount == 0)
{ {

View file

@ -179,7 +179,7 @@ static ULONG WINAPI Parser_Release(IBaseFilter * iface)
ParserImpl *This = (ParserImpl *)iface; ParserImpl *This = (ParserImpl *)iface;
ULONG refCount = InterlockedDecrement(&This->refCount); ULONG refCount = InterlockedDecrement(&This->refCount);
TRACE("(%p/%p)->() Release from %d\n", This, iface, refCount + 1); TRACE("(%p)->() Release from %d\n", This, refCount + 1);
if (!refCount) if (!refCount)
{ {
@ -195,7 +195,7 @@ static ULONG WINAPI Parser_Release(IBaseFilter * iface)
HeapFree(GetProcessHeap(), 0, This->ppPins); HeapFree(GetProcessHeap(), 0, This->ppPins);
This->lpVtbl = NULL; This->lpVtbl = NULL;
TRACE("Destroying AVI splitter\n"); TRACE("Destroying parser\n");
CoTaskMemFree(This); CoTaskMemFree(This);
return 0; return 0;