qcap: Register the file writer.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
feature/deterministic
Zebediah Figura 2020-04-23 20:47:08 -05:00 committed by Alexandre Julliard
parent dc78a97c30
commit 0eaa43357e
1 changed files with 23 additions and 0 deletions

View File

@ -224,12 +224,32 @@ static const REGFILTER2 reg_smart_tee =
.u.s2.rgPins2 = reg_smart_tee_pins,
};
static const REGPINTYPES reg_file_writer_sink_mt = {&GUID_NULL, &GUID_NULL};
static const REGFILTERPINS2 reg_file_writer_pins[1] =
{
{
.cInstances = 1,
.nMediaTypes = 1,
.lpMediaType = &reg_file_writer_sink_mt,
},
};
static const REGFILTER2 reg_file_writer =
{
.dwVersion = 2,
.dwMerit = MERIT_DO_NOT_USE,
.u.s2.cPins2 = 1,
.u.s2.rgPins2 = reg_file_writer_pins,
};
/***********************************************************************
* DllRegisterServer (QCAP.@)
*/
HRESULT WINAPI DllRegisterServer(void)
{
static const WCHAR avi_muxW[] = {'A','V','I',' ','M','u','x',0};
static const WCHAR file_writerW[] = {'F','i','l','e',' ','w','r','i','t','e','r',0};
static const WCHAR smart_teeW[] = {'S','m','a','r','t',' ','T','e','e',0};
IFilterMapper2 *mapper;
HRESULT hr;
@ -243,6 +263,8 @@ HRESULT WINAPI DllRegisterServer(void)
IFilterMapper2_RegisterFilter(mapper, &CLSID_AviDest, avi_muxW,
NULL, NULL, NULL, &reg_avi_mux);
IFilterMapper2_RegisterFilter(mapper, &CLSID_FileWriter, file_writerW,
NULL, NULL, NULL, &reg_file_writer);
IFilterMapper2_RegisterFilter(mapper, &CLSID_SmartTee, smart_teeW,
NULL, NULL, NULL, &reg_smart_tee);
@ -266,6 +288,7 @@ HRESULT WINAPI DllUnregisterServer(void)
return hr;
IFilterMapper2_UnregisterFilter(mapper, NULL, NULL, &CLSID_AviDest);
IFilterMapper2_UnregisterFilter(mapper, NULL, NULL, &CLSID_FileWriter);
IFilterMapper2_UnregisterFilter(mapper, NULL, NULL, &CLSID_SmartTee);
IFilterMapper2_Release(mapper);