Commit 0eaa4335 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

qcap: Register the file writer.

parent dc78a97c
...@@ -224,12 +224,32 @@ static const REGFILTER2 reg_smart_tee = ...@@ -224,12 +224,32 @@ static const REGFILTER2 reg_smart_tee =
.u.s2.rgPins2 = reg_smart_tee_pins, .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.@) * DllRegisterServer (QCAP.@)
*/ */
HRESULT WINAPI DllRegisterServer(void) HRESULT WINAPI DllRegisterServer(void)
{ {
static const WCHAR avi_muxW[] = {'A','V','I',' ','M','u','x',0}; 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}; static const WCHAR smart_teeW[] = {'S','m','a','r','t',' ','T','e','e',0};
IFilterMapper2 *mapper; IFilterMapper2 *mapper;
HRESULT hr; HRESULT hr;
...@@ -243,6 +263,8 @@ HRESULT WINAPI DllRegisterServer(void) ...@@ -243,6 +263,8 @@ HRESULT WINAPI DllRegisterServer(void)
IFilterMapper2_RegisterFilter(mapper, &CLSID_AviDest, avi_muxW, IFilterMapper2_RegisterFilter(mapper, &CLSID_AviDest, avi_muxW,
NULL, NULL, NULL, &reg_avi_mux); 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, IFilterMapper2_RegisterFilter(mapper, &CLSID_SmartTee, smart_teeW,
NULL, NULL, NULL, &reg_smart_tee); NULL, NULL, NULL, &reg_smart_tee);
...@@ -266,6 +288,7 @@ HRESULT WINAPI DllUnregisterServer(void) ...@@ -266,6 +288,7 @@ HRESULT WINAPI DllUnregisterServer(void)
return hr; return hr;
IFilterMapper2_UnregisterFilter(mapper, NULL, NULL, &CLSID_AviDest); IFilterMapper2_UnregisterFilter(mapper, NULL, NULL, &CLSID_AviDest);
IFilterMapper2_UnregisterFilter(mapper, NULL, NULL, &CLSID_FileWriter);
IFilterMapper2_UnregisterFilter(mapper, NULL, NULL, &CLSID_SmartTee); IFilterMapper2_UnregisterFilter(mapper, NULL, NULL, &CLSID_SmartTee);
IFilterMapper2_Release(mapper); IFilterMapper2_Release(mapper);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment