Commit graph

231 commits

Author SHA1 Message Date
Zebediah Figura
7bae2aaf95 devenum: Correct the size of "name" in register_avicap_devices().
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-08-28 19:29:16 +02:00
Zebediah Figura
58c3b5c100 devenum: Call DMOGetTypes() until less types are returned than were allocated.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-07-13 21:22:13 +02:00
Zebediah Figura
2f2ac79242 devenum: Return filter data for DMO monikers.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-05-15 23:21:55 +02:00
Zebediah Figura
b6f2e9b130 devenum: Use wide string literals.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-05-14 11:40:25 +02:00
Zebediah Figura
90a99806ac devenum: Map CLSID_LegacyAmFilterCategory to DMOCATEGORY_AUDIO_DECODER and DMOCATEGORY_VIDEO_DECODER.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-05-14 11:40:25 +02:00
Zebediah Figura
af68dafc63 devenum: Use calloc() in enum_moniker_create().
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-05-14 11:40:25 +02:00
Rémi Bernon
01dd935d1e devenum: Use free for memory allocated with wcsdup.
The memory is otherwise released to the process heap, although msvcrt
allocated it from its internal heap.

Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-29 19:51:22 +02:00
Zebediah Figura
6bdb22108c devenum: Implement IMoniker::BindToObject() for DMO devices.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-17 11:50:35 +02:00
Zebediah Figura
7133ed2569 devenum: Access the IPropertyBag interface directly in IMoniker::BindToObject().
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-17 11:50:33 +02:00
Zebediah Figura
6cfd0924aa devenum: Ignore the "left" parameter to IMoniker::BindToObject().
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-17 11:50:31 +02:00
Zebediah Figura
3ed689c0f2 devenum: Get rid of the union in struct moniker.
To avoid an invalid free in moniker_Release().

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-15 11:38:23 +02:00
Zebediah Figura
8edbd2d3e8 devenum: Remove some unnecessary includes.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-15 11:38:21 +02:00
Zebediah Figura
7c16aacc5f devenum: Return E_INVALIDARG from IPropertyBag::Write() for invalid variant types.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-15 11:38:19 +02:00
Zebediah Figura
ab355d6ea3 devenum/tests: Avoid running test_devenum() twice.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-15 11:38:11 +02:00
Zebediah Figura
e3cf3823f8 devenum: Merge the property bag object into the moniker object.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-14 11:21:02 +02:00
Zebediah Figura
ccefc1f469 devenum: Don't support VT_UI4 in IPropertyBag methods.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-14 11:20:59 +02:00
Zebediah Figura
e3df3ca839 devenum: Don't support VT_LPWSTR in IPropertyBag methods.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-14 11:20:56 +02:00
Zebediah Figura
27f13b2bb4 devenum/tests: Add more tests for IPropertyBag methods.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-14 11:20:53 +02:00
Zebediah Figura
208bc5d282 devenum/tests: Use wide character string literals.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-14 11:20:48 +02:00
Zebediah Figura
8cabd4785f devenum: Pass moniker fields to moniker_create().
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-13 11:51:47 +02:00
Zebediah Figura
4994ba2123 devenum: Use calloc() in moniker_create().
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-13 11:51:44 +02:00
Zebediah Figura
0fc7e99a15 devenum: Get rid of the MediaCatMoniker typedef.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-13 11:51:40 +02:00
Zebediah Figura
6a95f68396 devenum: Get rid of the DEVENUM_ prefix on all method names.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-13 11:51:35 +02:00
Zebediah Figura
cbfd33300a devenum: Don't bother creating the category key for codecs if there are no codecs to register.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-13 11:51:29 +02:00
Zebediah Figura
73a5417a02 devenum: Remove no longer necessary call to CoInitialize().
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-11 08:44:07 +01:00
Alexandre Julliard
280e51e114 devenum/tests: Get rid of strchrW() and strncmpW().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-01-26 10:59:43 +01:00
Nikolay Sivov
57c6b9fd41 devenum: Don't free uninitialized pointer value.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-03 10:56:18 +02:00
Alexandre Julliard
70d6d09f5d devenum: Build with msvcrt.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-31 08:49:22 +02:00
Damjan Jovanovic
779633acde devenum: Iterate over all avicap devices instead of giving up at the first failure.
Some /dev/video* device nodes aren't capture devices, so
capGetDriverDescriptionW() will fail for them, but there
could still be valid ones later on. Iterate over all 10
instead of giving up at the first failure.

Signed-off-by: Damjan Jovanovic <damjan.jov@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-26 16:36:36 +02:00
Zebediah Figura
7c743a492d devenum: Fix device and friendly name for video capture devices.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-22 11:18:54 +02:00
Zebediah Figura
e0da0b777a devenum: Return S_FALSE from CreateClassEnumerator() if no devices exist.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46316
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-09 15:46:03 +02:00
Detlef Riekenberg
9ceb9720e8 devenum/tests: Accept ERROR_KEY_DOES_NOT_EXIST from IPropertyBag_Read.
Signed-off-by: Detlef Riekenberg <wine.dev@web.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-21 19:33:02 +01:00
Sven Baars
e6b9a83bb4 devenum: Don't pass a name argument to IEnumDMO_Next.
Signed-off-by: Sven Baars <sven.wine@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-25 12:33:20 +01:00
Zebediah Figura
3399e9bbf2 devenum/tests: Fix some more memory leaks (Valgrind).
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-12-18 10:23:56 +01:00
Zebediah Figura
532c986ac5 devenum/tests: Fix some memory leaks (Valgrind).
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-12-13 10:11:17 +01:00
Zebediah Figura
cea7615038 devenum: Zero-initialize REGFILTERPINS struct.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45923
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-04 06:54:07 -05:00
Marcus Meissner
5ea87a883e devenum: Fixed size to capGetDriverDescriptionW (Coverity).
CID 1439780

Signed-off-by: Marcus Meissner <marcus@jet.franken.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-30 12:13:31 +02:00
Zebediah Figura
9316d8ae86 devenum: Only scan for devices for the requested filter category.
This matches native behaviour, and greatly reduces the overhead of
IFilterMapper2_EnumMatchingFilters().

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-24 10:25:06 +02:00
Zebediah Figura
ec16a92b1d devenum: Register AVI capture devices as codec devices.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-24 10:25:02 +02:00
Zebediah Figura
9ebbcb4f47 devenum: Factor friendly name and CLSID registration into register_codec().
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-24 10:24:58 +02:00
Michael Stefaniuc
e5216332c0 devenum: Use the ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-14 10:16:00 +02:00
Zebediah Figura
c05dbc4bf4 devenum/tests: Remove a duplicate test.
This is tested below in test_vfw().

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-14 10:15:59 +02:00
Zebediah Figura
ccfb441171 devenum/tests: Add some more traces in test_devenum().
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-14 09:47:48 +02:00
Zebediah Figura
217f0daadc devenum/tests: DMORegister() returns E_FAIL if unable to access the registry.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-28 14:06:09 +02:00
Zebediah Figura
c282e9d4b5 include: Make fil_data.idl a common header.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-26 16:39:44 +02:00
Zebediah Figura
7d243d146b devenum: Remove an unused typedef.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-26 16:38:08 +02:00
Zebediah Figura
3670d59409 devenum: Make some variables static.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-26 16:38:06 +02:00
Zebediah Figura
47921c19e0 devenum: Use separate factories for CLSID_SystemDeviceEnum and CLSID_CDeviceMoniker.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-26 16:38:04 +02:00
Zebediah Figura
b371cc5130 devenum: Merge factory.c into devenum_main.c.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-26 16:38:01 +02:00
Zebediah Figura
e119f245f1 devenum: Implement enumerating DMOs.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-25 11:58:52 +02:00