http://bugs.winehq.org/show_bug.cgi?id=5022
Summary: Wine does not define CLSID_NULLRenderer Product: Wine Version: 0.9.10. Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: wine-directx-dshow AssignedTo: wine-bugs@winehq.org ReportedBy: it9zui001@sneakemail.com
When writing a simple program to test direct-show filters, I wanted to test the filter without dealing with the output. The logincal answer is to use a NULLRenderer, so my code does something like:
GUID CLSID_NULLRenderer={0xC1F400A4, 0x3F08, 0x11D3, { 0x9F, 0x0B, 0x00, 0x60, 0x08, 0x03, 0x9E, 0x37}}; ... CoCreateInstance(CLSID_NULLRenderer, NULL, CLSCTX_INPROC_SERVER, IID_IBaseFilter, (void**)&g_pRenderer); g_pGraphBuilder->AddFilter(g_pRenderer, NULL); ... g_pRenderer->EnumPins(&EnumPins); EnumPins->Reset(); EnumPins->Next(1, &Renderer, &fetched); // renderer has only 1 pin, so this is the pin we need g_pGraphBuilder->Connect(Decoder_out, Renderer); Renderer->Release(); ...
However, the NullRenderer is not defined within wine. In the DirectX API, it is defined in qedit.h, and linked from strmiids.lib
It is documented on msdn here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/directshow/...
This is useful for testing codec performance through wine, as well as writing directshow test utilities.