Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
614ee831
Commit
614ee831
authored
Mar 10, 2007
by
Jan Zerebecki
Committed by
Alexandre Julliard
Mar 12, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qcap: Add DebugInfo to critical sections.
parent
58f37a12
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
0 deletions
+6
-0
capturegraph.c
dlls/qcap/capturegraph.c
+2
-0
v4l.c
dlls/qcap/v4l.c
+2
-0
vfwcapture.c
dlls/qcap/vfwcapture.c
+2
-0
No files found.
dlls/qcap/capturegraph.c
View file @
614ee831
...
@@ -105,6 +105,7 @@ IUnknown * CALLBACK QCAP_createCaptureGraphBuilder2(IUnknown *pUnkOuter,
...
@@ -105,6 +105,7 @@ IUnknown * CALLBACK QCAP_createCaptureGraphBuilder2(IUnknown *pUnkOuter,
pCapture
->
ref
=
1
;
pCapture
->
ref
=
1
;
pCapture
->
mygraph
=
NULL
;
pCapture
->
mygraph
=
NULL
;
InitializeCriticalSection
(
&
pCapture
->
csFilter
);
InitializeCriticalSection
(
&
pCapture
->
csFilter
);
pCapture
->
csFilter
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": CaptureGraphImpl.csFilter"
);
*
phr
=
S_OK
;
*
phr
=
S_OK
;
ObjectRefCount
(
TRUE
);
ObjectRefCount
(
TRUE
);
}
}
...
@@ -160,6 +161,7 @@ fnCaptureGraphBuilder2_Release(ICaptureGraphBuilder2 * iface)
...
@@ -160,6 +161,7 @@ fnCaptureGraphBuilder2_Release(ICaptureGraphBuilder2 * iface)
if
(
!
ref
)
if
(
!
ref
)
{
{
FIXME
(
"Release IGraphFilter or w/e
\n
"
);
FIXME
(
"Release IGraphFilter or w/e
\n
"
);
This
->
csFilter
.
DebugInfo
->
Spare
[
0
]
=
0
;
DeleteCriticalSection
(
&
This
->
csFilter
);
DeleteCriticalSection
(
&
This
->
csFilter
);
This
->
lpVtbl
=
NULL
;
This
->
lpVtbl
=
NULL
;
This
->
lpVtbl2
=
NULL
;
This
->
lpVtbl2
=
NULL
;
...
...
dlls/qcap/v4l.c
View file @
614ee831
...
@@ -224,6 +224,7 @@ HRESULT qcap_driver_destroy(Capture *capBox)
...
@@ -224,6 +224,7 @@ HRESULT qcap_driver_destroy(Capture *capBox)
if
(
capBox
->
fd
!=
-
1
)
if
(
capBox
->
fd
!=
-
1
)
close
(
capBox
->
fd
);
close
(
capBox
->
fd
);
capBox
->
CritSect
.
DebugInfo
->
Spare
[
0
]
=
0
;
DeleteCriticalSection
(
&
capBox
->
CritSect
);
DeleteCriticalSection
(
&
capBox
->
CritSect
);
CoTaskMemFree
(
capBox
);
CoTaskMemFree
(
capBox
);
return
S_OK
;
return
S_OK
;
...
@@ -789,6 +790,7 @@ Capture * qcap_driver_init( IPin *pOut, USHORT card )
...
@@ -789,6 +790,7 @@ Capture * qcap_driver_init( IPin *pOut, USHORT card )
/* capBox->vtbl = &defboxVtbl; */
/* capBox->vtbl = &defboxVtbl; */
InitializeCriticalSection
(
&
capBox
->
CritSect
);
InitializeCriticalSection
(
&
capBox
->
CritSect
);
capBox
->
CritSect
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": Capture.CritSect"
);
sprintf
(
device
,
"/dev/video%i"
,
card
);
sprintf
(
device
,
"/dev/video%i"
,
card
);
TRACE
(
"opening %s
\n
"
,
device
);
TRACE
(
"opening %s
\n
"
,
device
);
...
...
dlls/qcap/vfwcapture.c
View file @
614ee831
...
@@ -112,6 +112,7 @@ IUnknown * WINAPI QCAP_createVFWCaptureFilter(IUnknown *pUnkOuter, HRESULT *phr)
...
@@ -112,6 +112,7 @@ IUnknown * WINAPI QCAP_createVFWCaptureFilter(IUnknown *pUnkOuter, HRESULT *phr)
pVfwCapture
->
state
=
State_Stopped
;
pVfwCapture
->
state
=
State_Stopped
;
pVfwCapture
->
init
=
FALSE
;
pVfwCapture
->
init
=
FALSE
;
InitializeCriticalSection
(
&
pVfwCapture
->
csFilter
);
InitializeCriticalSection
(
&
pVfwCapture
->
csFilter
);
pVfwCapture
->
csFilter
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": VfwCapture.csFilter"
);
hr
=
VfwPin_Construct
((
IBaseFilter
*
)
&
pVfwCapture
->
lpVtbl
,
hr
=
VfwPin_Construct
((
IBaseFilter
*
)
&
pVfwCapture
->
lpVtbl
,
&
pVfwCapture
->
csFilter
,
&
pVfwCapture
->
pOutputPin
);
&
pVfwCapture
->
csFilter
,
&
pVfwCapture
->
pOutputPin
);
if
(
!
SUCCEEDED
(
hr
))
if
(
!
SUCCEEDED
(
hr
))
...
@@ -208,6 +209,7 @@ static ULONG WINAPI VfwCapture_Release(IBaseFilter * iface)
...
@@ -208,6 +209,7 @@ static ULONG WINAPI VfwCapture_Release(IBaseFilter * iface)
IPin_Disconnect
(
This
->
pOutputPin
);
IPin_Disconnect
(
This
->
pOutputPin
);
}
}
IPin_Release
(
This
->
pOutputPin
);
IPin_Release
(
This
->
pOutputPin
);
This
->
csFilter
.
DebugInfo
->
Spare
[
0
]
=
0
;
DeleteCriticalSection
(
&
This
->
csFilter
);
DeleteCriticalSection
(
&
This
->
csFilter
);
This
->
lpVtbl
=
NULL
;
This
->
lpVtbl
=
NULL
;
CoTaskMemFree
(
This
);
CoTaskMemFree
(
This
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment