Commit 54f4a4a7 authored by Chris Robinson's avatar Chris Robinson Committed by Alexandre Julliard

quartz: Disconnect pins when their filter is removed.

parent d8dc9fb3
......@@ -416,7 +416,17 @@ static HRESULT WINAPI GraphBuilder_RemoveFilter(IGraphBuilder *iface,
{
if (This->ppFiltersInGraph[i] == pFilter)
{
/* FIXME: disconnect pins */
IEnumPins *penumpins;
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);
}
IEnumPins_Release(penumpins);
}
hr = IBaseFilter_JoinFilterGraph(pFilter, NULL, This->pFilterNames[i]);
if (SUCCEEDED(hr))
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment