mirror of
https://github.com/reactos/wine.git
synced 2024-11-24 12:20:07 +00:00
- Fix IGraphBuilder::ConnectDirect.
- Register IFilterMapper and IFilterMapper2 in DllRegisterServer.
This commit is contained in:
parent
5d7957a36d
commit
3f854103ad
@ -261,15 +261,31 @@ static HRESULT WINAPI Graphbuilder_FindFilterByName(IGraphBuilder *iface,
|
||||
return E_FAIL; /* FIXME: check this error code */
|
||||
}
|
||||
|
||||
/* NOTE: despite the implication, it doesn't matter which
|
||||
* way round you put in the input and output pins */
|
||||
static HRESULT WINAPI Graphbuilder_ConnectDirect(IGraphBuilder *iface,
|
||||
IPin *ppinIn,
|
||||
IPin *ppinOut,
|
||||
const AM_MEDIA_TYPE *pmt) {
|
||||
PIN_DIRECTION dir;
|
||||
HRESULT hr;
|
||||
|
||||
ICOM_THIS_MULTI(IFilterGraphImpl, IGraphBuilder_vtbl, iface);
|
||||
|
||||
TRACE("(%p/%p)->(%p, %p, %p)\n", This, iface, ppinIn, ppinOut, pmt);
|
||||
|
||||
return IPin_Connect(ppinOut, ppinIn, pmt);
|
||||
/* FIXME: check pins are in graph */
|
||||
|
||||
hr = IPin_QueryDirection(ppinIn, &dir);
|
||||
if (SUCCEEDED(hr))
|
||||
{
|
||||
if (dir == PINDIR_INPUT)
|
||||
hr = IPin_Connect(ppinOut, ppinIn, pmt);
|
||||
else
|
||||
hr = IPin_Connect(ppinIn, ppinOut, pmt);
|
||||
}
|
||||
|
||||
return hr;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI Graphbuilder_Reconnect(IGraphBuilder *iface,
|
||||
|
@ -509,6 +509,18 @@ static struct regsvr_coclass const coclass_list[] = {
|
||||
"quartz.dll",
|
||||
"Both"
|
||||
},
|
||||
{ &CLSID_FilterMapper,
|
||||
"Filter Mapper",
|
||||
NULL,
|
||||
"quartz.dll",
|
||||
"Both"
|
||||
},
|
||||
{ &CLSID_FilterMapper2,
|
||||
"Filter Mapper 2",
|
||||
NULL,
|
||||
"quartz.dll",
|
||||
"Both"
|
||||
},
|
||||
{ NULL } /* list terminator */
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user