From 614ee8314df6c8d5200a72cfd26b56178c074f53 Mon Sep 17 00:00:00 2001 From: Jan Zerebecki Date: Sat, 10 Mar 2007 22:10:09 +0100 Subject: [PATCH] qcap: Add DebugInfo to critical sections. --- dlls/qcap/capturegraph.c | 2 ++ dlls/qcap/v4l.c | 2 ++ dlls/qcap/vfwcapture.c | 2 ++ 3 files changed, 6 insertions(+) diff --git a/dlls/qcap/capturegraph.c b/dlls/qcap/capturegraph.c index 32117905942..c947980fd4a 100644 --- a/dlls/qcap/capturegraph.c +++ b/dlls/qcap/capturegraph.c @@ -105,6 +105,7 @@ IUnknown * CALLBACK QCAP_createCaptureGraphBuilder2(IUnknown *pUnkOuter, pCapture->ref = 1; pCapture->mygraph = NULL; InitializeCriticalSection(&pCapture->csFilter); + pCapture->csFilter.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": CaptureGraphImpl.csFilter"); *phr = S_OK; ObjectRefCount(TRUE); } @@ -160,6 +161,7 @@ fnCaptureGraphBuilder2_Release(ICaptureGraphBuilder2 * iface) if (!ref) { FIXME("Release IGraphFilter or w/e\n"); + This->csFilter.DebugInfo->Spare[0] = 0; DeleteCriticalSection(&This->csFilter); This->lpVtbl = NULL; This->lpVtbl2 = NULL; diff --git a/dlls/qcap/v4l.c b/dlls/qcap/v4l.c index bb8dfb9444d..babf2cfcf22 100644 --- a/dlls/qcap/v4l.c +++ b/dlls/qcap/v4l.c @@ -224,6 +224,7 @@ HRESULT qcap_driver_destroy(Capture *capBox) if( capBox->fd != -1 ) close(capBox->fd); + capBox->CritSect.DebugInfo->Spare[0] = 0; DeleteCriticalSection(&capBox->CritSect); CoTaskMemFree(capBox); return S_OK; @@ -789,6 +790,7 @@ Capture * qcap_driver_init( IPin *pOut, USHORT card ) /* capBox->vtbl = &defboxVtbl; */ InitializeCriticalSection( &capBox->CritSect ); + capBox->CritSect.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": Capture.CritSect"); sprintf(device, "/dev/video%i", card); TRACE("opening %s\n", device); diff --git a/dlls/qcap/vfwcapture.c b/dlls/qcap/vfwcapture.c index ace2b55978c..d388c00252d 100644 --- a/dlls/qcap/vfwcapture.c +++ b/dlls/qcap/vfwcapture.c @@ -112,6 +112,7 @@ IUnknown * WINAPI QCAP_createVFWCaptureFilter(IUnknown *pUnkOuter, HRESULT *phr) pVfwCapture->state = State_Stopped; pVfwCapture->init = FALSE; InitializeCriticalSection(&pVfwCapture->csFilter); + pVfwCapture->csFilter.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": VfwCapture.csFilter"); hr = VfwPin_Construct((IBaseFilter *)&pVfwCapture->lpVtbl, &pVfwCapture->csFilter, &pVfwCapture->pOutputPin); if (!SUCCEEDED(hr)) @@ -208,6 +209,7 @@ static ULONG WINAPI VfwCapture_Release(IBaseFilter * iface) IPin_Disconnect(This->pOutputPin); } IPin_Release(This->pOutputPin); + This->csFilter.DebugInfo->Spare[0] = 0; DeleteCriticalSection(&This->csFilter); This->lpVtbl = NULL; CoTaskMemFree(This);