quartz: Make filtergraph quieter.
This commit is contained in:
parent
fe9840f213
commit
86393897a8
@ -710,7 +710,7 @@ static HRESULT WINAPI FilterGraph2_Reconnect(IFilterGraph2 *iface,
|
|||||||
hr = IPin_Connect(ppin, pConnectedTo, NULL);
|
hr = IPin_Connect(ppin, pConnectedTo, NULL);
|
||||||
IPin_Release(pConnectedTo);
|
IPin_Release(pConnectedTo);
|
||||||
if (FAILED(hr))
|
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);
|
TRACE("(%p->%p) -- %p %p -> %x\n", iface, This, ppin, pConnectedTo, hr);
|
||||||
return hr;
|
return hr;
|
||||||
}
|
}
|
||||||
@ -785,7 +785,7 @@ static HRESULT GetInternalConnections(IBaseFilter* pfilter, IPin* pinputpin, IPi
|
|||||||
*pppins = CoTaskMemAlloc(sizeof(IPin*)*nb);
|
*pppins = CoTaskMemAlloc(sizeof(IPin*)*nb);
|
||||||
hr = IPin_QueryInternalConnections(pinputpin, *pppins, &nb);
|
hr = IPin_QueryInternalConnections(pinputpin, *pppins, &nb);
|
||||||
if (hr != S_OK) {
|
if (hr != S_OK) {
|
||||||
ERR("Error (%x)\n", hr);
|
WARN("Error (%x)\n", hr);
|
||||||
}
|
}
|
||||||
} else if (hr == E_NOTIMPL) {
|
} else if (hr == E_NOTIMPL) {
|
||||||
/* Input connected to all outputs */
|
/* Input connected to all outputs */
|
||||||
@ -795,7 +795,7 @@ static HRESULT GetInternalConnections(IBaseFilter* pfilter, IPin* pinputpin, IPi
|
|||||||
TRACE("E_NOTIMPL\n");
|
TRACE("E_NOTIMPL\n");
|
||||||
hr = IBaseFilter_EnumPins(pfilter, &penumpins);
|
hr = IBaseFilter_EnumPins(pfilter, &penumpins);
|
||||||
if (FAILED(hr)) {
|
if (FAILED(hr)) {
|
||||||
ERR("filter Enumpins failed (%x)\n", hr);
|
WARN("filter Enumpins failed (%x)\n", hr);
|
||||||
return hr;
|
return hr;
|
||||||
}
|
}
|
||||||
i = 0;
|
i = 0;
|
||||||
@ -822,11 +822,11 @@ static HRESULT GetInternalConnections(IBaseFilter* pfilter, IPin* pinputpin, IPi
|
|||||||
IEnumPins_Release(penumpins);
|
IEnumPins_Release(penumpins);
|
||||||
nb = i;
|
nb = i;
|
||||||
if (FAILED(hr)) {
|
if (FAILED(hr)) {
|
||||||
ERR("Next failed (%x)\n", hr);
|
WARN("Next failed (%x)\n", hr);
|
||||||
return hr;
|
return hr;
|
||||||
}
|
}
|
||||||
} else if (FAILED(hr)) {
|
} else if (FAILED(hr)) {
|
||||||
ERR("Cannot get internal connection (%x)\n", hr);
|
WARN("Cannot get internal connection (%x)\n", hr);
|
||||||
return hr;
|
return hr;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1386,10 +1386,10 @@ static HRESULT WINAPI FilterGraph2_RenderFile(IFilterGraph2 *iface,
|
|||||||
INT i;
|
INT i;
|
||||||
|
|
||||||
hr = IFilterGraph2_Render(iface, ppinreader);
|
hr = IFilterGraph2_Render(iface, ppinreader);
|
||||||
ERR("Render %08x\n", hr);
|
TRACE("Render %08x\n", hr);
|
||||||
|
|
||||||
for (i = 0; i < This->nFilters; ++i)
|
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))
|
if (SUCCEEDED(hr))
|
||||||
any = TRUE;
|
any = TRUE;
|
||||||
@ -1489,33 +1489,33 @@ static HRESULT WINAPI FilterGraph2_AddSourceFilter(IFilterGraph2 *iface,
|
|||||||
if (FAILED(hr))
|
if (FAILED(hr))
|
||||||
hr = CoCreateInstance(&CLSID_AsyncReader, NULL, CLSCTX_INPROC_SERVER, &IID_IBaseFilter, (LPVOID*)&preader);
|
hr = CoCreateInstance(&CLSID_AsyncReader, NULL, CLSCTX_INPROC_SERVER, &IID_IBaseFilter, (LPVOID*)&preader);
|
||||||
if (FAILED(hr)) {
|
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;
|
return hr;
|
||||||
}
|
}
|
||||||
|
|
||||||
hr = IFilterGraph2_AddFilter(iface, preader, lpcwstrFilterName);
|
hr = IFilterGraph2_AddFilter(iface, preader, lpcwstrFilterName);
|
||||||
if (FAILED(hr)) {
|
if (FAILED(hr)) {
|
||||||
ERR("Unable add filter (%x)\n", hr);
|
WARN("Unable add filter (%x)\n", hr);
|
||||||
IBaseFilter_Release(preader);
|
IBaseFilter_Release(preader);
|
||||||
return hr;
|
return hr;
|
||||||
}
|
}
|
||||||
|
|
||||||
hr = IBaseFilter_QueryInterface(preader, &IID_IFileSourceFilter, (LPVOID*)&pfile);
|
hr = IBaseFilter_QueryInterface(preader, &IID_IFileSourceFilter, (LPVOID*)&pfile);
|
||||||
if (FAILED(hr)) {
|
if (FAILED(hr)) {
|
||||||
ERR("Unable to get IFileSourceInterface (%x)\n", hr);
|
WARN("Unable to get IFileSourceInterface (%x)\n", hr);
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Load the file in the file source filter */
|
/* Load the file in the file source filter */
|
||||||
hr = IFileSourceFilter_Load(pfile, lpcwstrFileName, NULL);
|
hr = IFileSourceFilter_Load(pfile, lpcwstrFileName, NULL);
|
||||||
if (FAILED(hr)) {
|
if (FAILED(hr)) {
|
||||||
ERR("Load (%x)\n", hr);
|
WARN("Load (%x)\n", hr);
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
IFileSourceFilter_GetCurFile(pfile, &filename, &mt);
|
IFileSourceFilter_GetCurFile(pfile, &filename, &mt);
|
||||||
if (FAILED(hr)) {
|
if (FAILED(hr)) {
|
||||||
ERR("GetCurFile (%x)\n", hr);
|
WARN("GetCurFile (%x)\n", hr);
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1831,7 +1831,7 @@ static HRESULT SendFilterMessage(IMediaControl *iface, fnFoundFilter FoundFilter
|
|||||||
hr = IBaseFilter_EnumPins(pfilter, &pEnum);
|
hr = IBaseFilter_EnumPins(pfilter, &pEnum);
|
||||||
if (hr != S_OK)
|
if (hr != S_OK)
|
||||||
{
|
{
|
||||||
ERR("Enum pins failed %x\n", hr);
|
WARN("Enum pins failed %x\n", hr);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
/* Check if it is a source filter */
|
/* 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);
|
hr = IBaseFilter_EnumPins(pfilter, &pEnum);
|
||||||
if (hr != S_OK)
|
if (hr != S_OK)
|
||||||
{
|
{
|
||||||
ERR("Enum pins failed %x\n", hr);
|
WARN("Enum pins failed %x\n", hr);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
/* Check if it is a source filter */
|
/* Check if it is a source filter */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user