From 0717c9619243a5169cfd369753b33b0040db4056 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 5 Mar 2007 06:11:37 -0800 Subject: [PATCH] quartz: Improve reference traces. --- dlls/quartz/dsoundrender.c | 2 +- dlls/quartz/enumpins.c | 6 ++++-- dlls/quartz/filesource.c | 6 +++--- dlls/quartz/filtermapper.c | 4 ++-- dlls/quartz/parser.c | 4 ++-- 5 files changed, 12 insertions(+), 10 deletions(-) diff --git a/dlls/quartz/dsoundrender.c b/dlls/quartz/dsoundrender.c index 32c807cf0b..9c034437bb 100644 --- a/dlls/quartz/dsoundrender.c +++ b/dlls/quartz/dsoundrender.c @@ -394,7 +394,7 @@ static ULONG WINAPI DSoundRender_Release(IBaseFilter * iface) DSoundRenderImpl *This = (DSoundRenderImpl *)iface; 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) { diff --git a/dlls/quartz/enumpins.c b/dlls/quartz/enumpins.c index 2a4b8f9348..65e6759f92 100644 --- a/dlls/quartz/enumpins.c +++ b/dlls/quartz/enumpins.c @@ -47,6 +47,8 @@ HRESULT IEnumPinsImpl_Construct(const ENUMPINDETAILS * pDetails, IEnumPins ** pp pEnumPins->uIndex = 0; CopyMemory(&pEnumPins->enumPinDetails, pDetails, sizeof(ENUMPINDETAILS)); *ppEnum = (IEnumPins *)(&pEnumPins->lpVtbl); + + TRACE("Created new enumerator (%p)\n", *ppEnum); return S_OK; } @@ -77,7 +79,7 @@ static ULONG WINAPI IEnumPinsImpl_AddRef(IEnumPins * iface) IEnumPinsImpl *This = (IEnumPinsImpl *)iface; ULONG refCount = InterlockedIncrement(&This->refCount); - TRACE("()\n"); + TRACE("(%p)->() AddRef from %d\n", This, refCount - 1); return refCount; } @@ -87,7 +89,7 @@ static ULONG WINAPI IEnumPinsImpl_Release(IEnumPins * iface) IEnumPinsImpl *This = (IEnumPinsImpl *)iface; ULONG refCount = InterlockedDecrement(&This->refCount); - TRACE("()\n"); + TRACE("(%p)->() Release from %d\n", This, refCount + 1); if (!refCount) { diff --git a/dlls/quartz/filesource.c b/dlls/quartz/filesource.c index 01b9955106..66a753f658 100644 --- a/dlls/quartz/filesource.c +++ b/dlls/quartz/filesource.c @@ -362,7 +362,7 @@ static ULONG WINAPI AsyncReader_AddRef(IBaseFilter * iface) AsyncReader *This = (AsyncReader *)iface; 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; } @@ -372,7 +372,7 @@ static ULONG WINAPI AsyncReader_Release(IBaseFilter * iface) AsyncReader *This = (AsyncReader *)iface; 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) { @@ -751,7 +751,7 @@ static ULONG WINAPI FileAsyncReaderPin_Release(IPin * iface) FileAsyncReader *This = (FileAsyncReader *)iface; ULONG refCount = InterlockedDecrement(&This->pin.pin.refCount); - TRACE("()\n"); + TRACE("(%p)->() Release from %d\n", This, refCount + 1); if (!refCount) { diff --git a/dlls/quartz/filtermapper.c b/dlls/quartz/filtermapper.c index c7ac20ac30..e4c70a7b38 100644 --- a/dlls/quartz/filtermapper.c +++ b/dlls/quartz/filtermapper.c @@ -228,7 +228,7 @@ static ULONG WINAPI FilterMapper2_AddRef(IFilterMapper2 * iface) FilterMapper2Impl *This = (FilterMapper2Impl *)iface; ULONG refCount = InterlockedIncrement(&This->refCount); - TRACE("(%p)->()\n", iface); + TRACE("(%p)->() AddRef from %d\n", This, refCount - 1); return refCount; } @@ -238,7 +238,7 @@ static ULONG WINAPI FilterMapper2_Release(IFilterMapper2 * iface) FilterMapper2Impl *This = (FilterMapper2Impl *)iface; ULONG refCount = InterlockedDecrement(&This->refCount); - TRACE("(%p)->()\n", iface); + TRACE("(%p)->() Release from %d\n", This, refCount + 1); if (refCount == 0) { diff --git a/dlls/quartz/parser.c b/dlls/quartz/parser.c index 13fa2bce42..edcb9c7bd6 100644 --- a/dlls/quartz/parser.c +++ b/dlls/quartz/parser.c @@ -179,7 +179,7 @@ static ULONG WINAPI Parser_Release(IBaseFilter * iface) ParserImpl *This = (ParserImpl *)iface; 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) { @@ -195,7 +195,7 @@ static ULONG WINAPI Parser_Release(IBaseFilter * iface) HeapFree(GetProcessHeap(), 0, This->ppPins); This->lpVtbl = NULL; - TRACE("Destroying AVI splitter\n"); + TRACE("Destroying parser\n"); CoTaskMemFree(This); return 0;