Zebediah Figura : qcap: Register the file writer.
Alexandre Julliard
julliard at winehq.org
Fri Apr 24 15:11:39 CDT 2020
Module: wine
Branch: master
Commit: 0eaa43357e22bcc6350c8d78426b0d5f1fd43af7
URL: https://source.winehq.org/git/wine.git/?a=commit;h=0eaa43357e22bcc6350c8d78426b0d5f1fd43af7
Author: Zebediah Figura <z.figura12 at gmail.com>
Date: Thu Apr 23 20:47:08 2020 -0500
qcap: Register the file writer.
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/qcap/qcap_main.c | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/dlls/qcap/qcap_main.c b/dlls/qcap/qcap_main.c
index 2f45e2f469..00e0a9671f 100644
--- a/dlls/qcap/qcap_main.c
+++ b/dlls/qcap/qcap_main.c
@@ -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 = ®_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, ®_avi_mux);
+ IFilterMapper2_RegisterFilter(mapper, &CLSID_FileWriter, file_writerW,
+ NULL, NULL, NULL, ®_file_writer);
IFilterMapper2_RegisterFilter(mapper, &CLSID_SmartTee, smart_teeW,
NULL, NULL, NULL, ®_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);
More information about the wine-cvs
mailing list