From 3df1c6a22f45c42ac538eb3738a2114de8e1651c Mon Sep 17 00:00:00 2001 From: Maarten Lankhorst Date: Wed, 9 Jul 2008 13:01:19 -0700 Subject: [PATCH] quartz: Make filtergraph quieter --- dlls/quartz/filtergraph.c | 28 ++++++++++++++-------------- 1 files changed, 14 insertions(+), 14 deletions(-) diff --git a/dlls/quartz/filtergraph.c b/dlls/quartz/filtergraph.c index d2f10b6..0b513bf 100644 --- a/dlls/quartz/filtergraph.c +++ b/dlls/quartz/filtergraph.c @@ -710,7 +710,7 @@ static HRESULT WINAPI FilterGraph2_Reconnect(IFilterGraph2 *iface, hr = IPin_Connect(ppin, pConnectedTo, NULL); IPin_Release(pConnectedTo); if (FAILED(hr)) - ERR("Reconnecting pins failed, pins are not connected now..\n"); + WARN("Reconnecting pins failed, pins are not connected now..\n"); TRACE("(%p->%p) -- %p %p -> %x\n", iface, This, ppin, pConnectedTo, hr); return hr; } @@ -785,7 +785,7 @@ static HRESULT GetInternalConnections(IBaseFilter* pfilter, IPin* pinputpin, IPi *pppins = CoTaskMemAlloc(sizeof(IPin*)*nb); hr = IPin_QueryInternalConnections(pinputpin, *pppins, &nb); if (hr != S_OK) { - ERR("Error (%x)\n", hr); + WARN("Error (%x)\n", hr); } } else if (hr == E_NOTIMPL) { /* Input connected to all outputs */ @@ -795,7 +795,7 @@ static HRESULT GetInternalConnections(IBaseFilter* pfilter, IPin* pinputpin, IPi TRACE("E_NOTIMPL\n"); hr = IBaseFilter_EnumPins(pfilter, &penumpins); if (FAILED(hr)) { - ERR("filter Enumpins failed (%x)\n", hr); + WARN("filter Enumpins failed (%x)\n", hr); return hr; } i = 0; @@ -822,11 +822,11 @@ static HRESULT GetInternalConnections(IBaseFilter* pfilter, IPin* pinputpin, IPi IEnumPins_Release(penumpins); nb = i; if (FAILED(hr)) { - ERR("Next failed (%x)\n", hr); + WARN("Next failed (%x)\n", hr); return hr; } } else if (FAILED(hr)) { - ERR("Cannot get internal connection (%x)\n", hr); + WARN("Cannot get internal connection (%x)\n", hr); return hr; } @@ -1386,10 +1386,10 @@ static HRESULT WINAPI FilterGraph2_RenderFile(IFilterGraph2 *iface, INT i; hr = IFilterGraph2_Render(iface, ppinreader); - ERR("Render %08x\n", hr); + TRACE("Render %08x\n", hr); for (i = 0; i < This->nFilters; ++i) - FIXME("Filters in chain: %s\n", debugstr_w(This->pFilterNames[i])); + TRACE("Filters in chain: %s\n", debugstr_w(This->pFilterNames[i])); if (SUCCEEDED(hr)) any = TRUE; @@ -1489,33 +1489,33 @@ static HRESULT WINAPI FilterGraph2_AddSourceFilter(IFilterGraph2 *iface, if (FAILED(hr)) hr = CoCreateInstance(&CLSID_AsyncReader, NULL, CLSCTX_INPROC_SERVER, &IID_IBaseFilter, (LPVOID*)&preader); if (FAILED(hr)) { - ERR("Unable to create file source filter (%x)\n", hr); + WARN("Unable to create file source filter (%x)\n", hr); return hr; } hr = IFilterGraph2_AddFilter(iface, preader, lpcwstrFilterName); if (FAILED(hr)) { - ERR("Unable add filter (%x)\n", hr); + WARN("Unable add filter (%x)\n", hr); IBaseFilter_Release(preader); return hr; } hr = IBaseFilter_QueryInterface(preader, &IID_IFileSourceFilter, (LPVOID*)&pfile); if (FAILED(hr)) { - ERR("Unable to get IFileSourceInterface (%x)\n", hr); + WARN("Unable to get IFileSourceInterface (%x)\n", hr); goto error; } /* Load the file in the file source filter */ hr = IFileSourceFilter_Load(pfile, lpcwstrFileName, NULL); if (FAILED(hr)) { - ERR("Load (%x)\n", hr); + WARN("Load (%x)\n", hr); goto error; } IFileSourceFilter_GetCurFile(pfile, &filename, &mt); if (FAILED(hr)) { - ERR("GetCurFile (%x)\n", hr); + WARN("GetCurFile (%x)\n", hr); goto error; } @@ -1831,7 +1831,7 @@ static HRESULT SendFilterMessage(IMediaControl *iface, fnFoundFilter FoundFilter hr = IBaseFilter_EnumPins(pfilter, &pEnum); if (hr != S_OK) { - ERR("Enum pins failed %x\n", hr); + WARN("Enum pins failed %x\n", hr); continue; } /* Check if it is a source filter */ @@ -2081,7 +2081,7 @@ static HRESULT all_renderers_seek(IFilterGraphImpl *This, fnFoundSeek FoundSeek, hr = IBaseFilter_EnumPins(pfilter, &pEnum); if (hr != S_OK) { - ERR("Enum pins failed %x\n", hr); + WARN("Enum pins failed %x\n", hr); continue; } /* Check if it is a source filter */ -- 1.5.4.1