Alessandro Pignotti : quartz: Use the moniker to create the filter directly .
Alexandre Julliard
julliard at winehq.org
Fri Mar 1 12:42:23 CST 2013
Module: wine
Branch: master
Commit: 1ebed65e924f1981601e56abe3997cbadb3aecc7
URL: http://source.winehq.org/git/wine.git/?a=commit;h=1ebed65e924f1981601e56abe3997cbadb3aecc7
Author: Alessandro Pignotti <a.pignotti at sssup.it>
Date: Sun Feb 24 23:13:45 2013 +0100
quartz: Use the moniker to create the filter directly.
---
dlls/quartz/filtergraph.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/quartz/filtergraph.c b/dlls/quartz/filtergraph.c
index 985e568..acd6dca 100644
--- a/dlls/quartz/filtergraph.c
+++ b/dlls/quartz/filtergraph.c
@@ -1394,13 +1394,13 @@ static HRESULT WINAPI FilterGraph2_Render(IFilterGraph2 *iface, IPin *ppinOut)
ULONG pin;
hr = GetFilterInfo(pMoniker, &clsid, &var);
- IMoniker_Release(pMoniker);
if (FAILED(hr)) {
WARN("Unable to retrieve filter info (%x)\n", hr);
goto error;
}
- hr = CoCreateInstance(&clsid, NULL, CLSCTX_INPROC_SERVER, &IID_IBaseFilter, (LPVOID*)&pfilter);
+ hr = IMoniker_BindToObject(pMoniker, NULL, NULL, &IID_IBaseFilter, (LPVOID*)&pfilter);
+ IMoniker_Release(pMoniker);
if (FAILED(hr))
{
WARN("Unable to create filter (%x), trying next one\n", hr);
More information about the wine-cvs
mailing list