Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
632d82f4
Commit
632d82f4
authored
Jan 15, 2013
by
Damjan Jovanovic
Committed by
Alexandre Julliard
Jan 15, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qcap: Use the BaseOutputPin's IMemAllocator.
parent
7f767bb1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
29 deletions
+5
-29
v4l.c
dlls/qcap/v4l.c
+5
-29
No files found.
dlls/qcap/v4l.c
View file @
632d82f4
...
...
@@ -684,7 +684,6 @@ HRESULT qcap_driver_run(Capture *capBox, FILTER_STATE *state)
*
state
=
State_Running
;
if
(
!
capBox
->
iscommitted
++
)
{
IMemAllocator
*
pAlloc
=
NULL
;
ALLOCATOR_PROPERTIES
ap
,
actual
;
BaseOutputPin
*
out
;
...
...
@@ -698,16 +697,11 @@ HRESULT qcap_driver_run(Capture *capBox, FILTER_STATE *state)
ap
.
cbPrefix
=
0
;
out
=
(
BaseOutputPin
*
)
capBox
->
pOut
;
hr
=
IMemInputPin_GetAllocator
(
out
->
pMemInputPin
,
&
pAlloc
);
if
(
SUCCEEDED
(
hr
))
hr
=
IMemAllocator_SetProperties
(
pAlloc
,
&
ap
,
&
actual
);
hr
=
IMemAllocator_SetProperties
(
out
->
pAllocator
,
&
ap
,
&
actual
);
if
(
SUCCEEDED
(
hr
))
hr
=
IMemAllocator_Commit
(
pAlloc
);
if
(
pAlloc
)
IMemAllocator_Release
(
pAlloc
);
hr
=
IMemAllocator_Commit
(
out
->
pAllocator
);
TRACE
(
"Committing allocator: %x
\n
"
,
hr
);
}
...
...
@@ -765,32 +759,14 @@ HRESULT qcap_driver_stop(Capture *capBox, FILTER_STATE *state)
capBox
->
thread
=
0
;
if
(
capBox
->
iscommitted
)
{
IMemInputPin
*
pMem
=
NULL
;
IMemAllocator
*
pAlloc
=
NULL
;
IPin
*
pConnect
=
NULL
;
BaseOutputPin
*
out
;
HRESULT
hr
;
capBox
->
iscommitted
=
0
;
hr
=
IPin_ConnectedTo
(
capBox
->
pOut
,
&
pConnect
);
if
(
SUCCEEDED
(
hr
))
hr
=
IPin_QueryInterface
(
pConnect
,
&
IID_IMemInputPin
,
(
void
**
)
&
pMem
);
if
(
SUCCEEDED
(
hr
))
hr
=
IMemInputPin_GetAllocator
(
pMem
,
&
pAlloc
);
if
(
SUCCEEDED
(
hr
))
hr
=
IMemAllocator_Decommit
(
pAlloc
);
if
(
pAlloc
)
IMemAllocator_Release
(
pAlloc
);
if
(
pMem
)
IMemInputPin_Release
(
pMem
);
out
=
(
BaseOutputPin
*
)
capBox
->
pOut
;
if
(
pConnect
)
IPin_Release
(
pConnect
);
hr
=
IMemAllocator_Decommit
(
out
->
pAllocator
);
if
(
hr
!=
S_OK
&&
hr
!=
VFW_E_NOT_COMMITTED
)
WARN
(
"Decommitting allocator: %x
\n
"
,
hr
);
...
...
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