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
14ba79ec
Commit
14ba79ec
authored
Mar 13, 2008
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Mar 15, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Fix IFilterGraph RemoveFilter to stop the filter before removing it.
Also checks for VFW_E_NOT_STOPPED that is allowed to cause a disconnection to fail.
parent
d47bdbfb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
2 deletions
+21
-2
filtergraph.c
dlls/quartz/filtergraph.c
+21
-2
No files found.
dlls/quartz/filtergraph.c
View file @
14ba79ec
...
...
@@ -448,12 +448,31 @@ static HRESULT WINAPI FilterGraph2_RemoveFilter(IFilterGraph2 *iface,
if
(
This
->
ppFiltersInGraph
[
i
]
==
pFilter
)
{
IEnumPins
*
penumpins
;
IBaseFilter_Stop
(
pFilter
);
hr
=
IBaseFilter_EnumPins
(
pFilter
,
&
penumpins
);
if
(
SUCCEEDED
(
hr
))
{
IPin
*
ppin
;
while
(
IEnumPins_Next
(
penumpins
,
1
,
&
ppin
,
NULL
)
==
S_OK
)
{
IPin_Disconnect
(
ppin
);
IPin_Release
(
ppin
);
IPin
*
victim
=
NULL
;
HRESULT
h
;
IPin_ConnectedTo
(
ppin
,
&
victim
);
if
(
victim
)
{
h
=
IPin_Disconnect
(
victim
);
TRACE
(
"Disconnect other side: %08x
\n
"
,
h
);
if
(
h
==
VFW_E_NOT_STOPPED
)
{
PIN_INFO
pinfo
;
IPin_QueryPinInfo
(
victim
,
&
pinfo
);
IBaseFilter_Stop
(
pinfo
.
pFilter
);
IBaseFilter_Release
(
pinfo
.
pFilter
);
h
=
IPin_Disconnect
(
victim
);
TRACE
(
"Disconnect retry: %08x
\n
"
,
h
);
}
IPin_Release
(
victim
);
}
h
=
IPin_Disconnect
(
ppin
);
TRACE
(
"Disconnect 2: %08x
\n
"
,
h
);
}
IEnumPins_Release
(
penumpins
);
}
...
...
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