Zebediah Figura : quartz/filtergraph: Remove type tracing from IGraphBuilder::AddSourceFilter().
Alexandre Julliard
julliard at winehq.org
Wed Aug 7 15:36:22 CDT 2019
Module: wine
Branch: master
Commit: a4006aa7d7f65809f5b4bc506ee092d3235bbf70
URL: https://source.winehq.org/git/wine.git/?a=commit;h=a4006aa7d7f65809f5b4bc506ee092d3235bbf70
Author: Zebediah Figura <z.figura12 at gmail.com>
Date: Tue Aug 6 14:58:30 2019 -0500
quartz/filtergraph: Remove type tracing from IGraphBuilder::AddSourceFilter().
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/quartz/filtergraph.c | 32 --------------------------------
1 file changed, 32 deletions(-)
diff --git a/dlls/quartz/filtergraph.c b/dlls/quartz/filtergraph.c
index a441294..d151cdf 100644
--- a/dlls/quartz/filtergraph.c
+++ b/dlls/quartz/filtergraph.c
@@ -1754,9 +1754,6 @@ static HRESULT WINAPI FilterGraph2_AddSourceFilter(IFilterGraph2 *iface, LPCWSTR
IFilterGraphImpl *This = impl_from_IFilterGraph2(iface);
HRESULT hr;
IBaseFilter* preader;
- IFileSourceFilter* pfile = NULL;
- AM_MEDIA_TYPE mt;
- WCHAR* filename;
TRACE("(%p/%p)->(%s, %s, %p)\n", This, iface, debugstr_w(lpcwstrFileName), debugstr_w(lpcwstrFilterName), ppFilter);
@@ -1774,39 +1771,10 @@ static HRESULT WINAPI FilterGraph2_AddSourceFilter(IFilterGraph2 *iface, LPCWSTR
return hr;
}
- hr = IBaseFilter_QueryInterface(preader, &IID_IFileSourceFilter, (LPVOID*)&pfile);
- if (FAILED(hr)) {
- WARN("Unable to get IFileSourceInterface (%x)\n", hr);
- goto error;
- }
-
- /* The file has been already loaded */
- hr = IFileSourceFilter_GetCurFile(pfile, &filename, &mt);
- if (FAILED(hr)) {
- WARN("GetCurFile (%x)\n", hr);
- goto error;
- }
-
- TRACE("File %s\n", debugstr_w(filename));
- TRACE("MajorType %s\n", debugstr_guid(&mt.majortype));
- TRACE("SubType %s\n", debugstr_guid(&mt.subtype));
-
- CoTaskMemFree(filename);
- FreeMediaType(&mt);
-
if (ppFilter)
*ppFilter = preader;
- IFileSourceFilter_Release(pfile);
return S_OK;
-
-error:
- if (pfile)
- IFileSourceFilter_Release(pfile);
- IFilterGraph2_RemoveFilter(iface, preader);
- IBaseFilter_Release(preader);
-
- return hr;
}
static HRESULT WINAPI FilterGraph2_SetLogFile(IFilterGraph2 *iface, DWORD_PTR hFile)
More information about the wine-cvs
mailing list