Chris Robinson : quartz: Improve reference traces.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Mar 5 13:10:27 CST 2007


Module: wine
Branch: master
Commit: 0717c9619243a5169cfd369753b33b0040db4056
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=0717c9619243a5169cfd369753b33b0040db4056

Author: Chris Robinson <chris.kcat at gmail.com>
Date:   Mon Mar  5 06:11:37 2007 -0800

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 32c807c..9c03443 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 2a4b8f9..65e6759 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 01b9955..66a753f 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 c7ac20a..e4c70a7 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 13fa2bc..edcb9c7 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;




More information about the wine-cvs mailing list