quartz: Don't release filters when they connect.

This commit is contained in:
Chris Robinson 2007-02-20 12:35:19 -08:00 committed by Alexandre Julliard
parent 0746b9076d
commit 5a8ee37191
1 changed files with 1 additions and 6 deletions

View File

@ -815,7 +815,6 @@ static HRESULT WINAPI GraphBuilder_Connect(IGraphBuilder *iface,
}
while (++i < nb) IPin_Release(ppins[i]);
CoTaskMemFree(ppins);
IBaseFilter_Release(pfilter);
IPin_Release(ppinfilter);
break;
}
@ -1082,7 +1081,7 @@ static HRESULT WINAPI GraphBuilder_RenderFile(IGraphBuilder *iface,
}
IGraphBuilder_RemoveFilter(iface, psplitter);
IBaseFilter_Release(psplitter);
ppinsplitter = NULL;
psplitter = NULL;
}
/* Render all output pin of the splitter by calling IGraphBuilder_Render on each of them */
@ -1104,10 +1103,6 @@ static HRESULT WINAPI GraphBuilder_RenderFile(IGraphBuilder *iface,
hr = (partial ? VFW_S_PARTIAL_RENDER : S_OK);
}
if (psplitter)
IBaseFilter_Release(psplitter);
IBaseFilter_Release(preader);
return hr;
}