Commit Graph

66 Commits

Author SHA1 Message Date
Zebediah Figura 65e6165ce8 devenum: Always return S_FALSE from DllCanUnloadNow().
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-26 09:34:41 +02:00
Jacek Caban f59b482c2c devenum: Use nameless structs and unions.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-23 09:31:41 +01:00
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 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 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
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
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 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 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 d63e560e6b devenum: Register VFW codecs as codec devices.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-02 12:28:12 +02:00
Zebediah Figura f4a98b8ce4 devenum: Register midiOut devices as codec devices.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-02 11:18:39 +02:00
Zebediah Figura c64f6ad08d devenum: Register waveIn devices as codec devices.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-02 11:18:39 +02:00
Zebediah Figura b7fdedd323 devenum: Register waveOut devices as codec devices.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-02 11:12:38 +02:00
Zebediah Figura 2f87691892 devenum: Register DirectSound devices as codec devices.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-12 20:59:15 +01:00
Zebediah Figura 5b4a18283b devenum: Register legacy AM filters as devenum codecs, not through FilterMapper2.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-12 20:59:15 +01:00
Zebediah Figura 71bd11bc6b devenum: Use version 2 of REGFILTER2 to register legacy filters.
Since quartz can't read back version 1.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-09 10:40:43 -06:00
Zebediah Figura 6c30370ef5 devenum: Always scan for devices in CreateClassEnumerator().
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-09 10:40:43 -06:00
Zebediah Figura f5c531bdd1 devenum: More correctly handle device types.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-07 08:46:54 -06:00
Michael Stefaniuc cf3d957950 devenum: Remove redundant NULL checks before CoTaskMemFree().
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-08 20:12:54 +09:00
Nikolay Sivov df5f835e68 devenum: Use V_* macros to access variant data. 2014-09-03 11:21:55 +02:00
Jacek Caban e303f11628 devenum: Make CLSID_VideoCompressorCategory a special category. 2014-01-09 12:10:52 +01:00
Jacek Caban 81c42ce710 devenum: Populate CLSID_VideoCompressorCategory category in key in DEVENUM_CreateSpecialCategories. 2014-01-08 20:06:16 +01:00
Jacek Caban 92be7be48d devenum: Enumerate both regular key and special key for special categories. 2014-01-08 20:04:46 +01:00
Jacek Caban 6ce17c1fa4 devenum: Moved test for special category GUID to separated function. 2014-01-08 20:03:44 +01:00
Maarten Lankhorst 604172dd98 devenum: Set FriendlyName and wave*ID for devices. 2013-05-14 19:31:57 +02:00
Jacek Caban 942f2ce792 include: Use widl to take care of nameless structs and unions. 2012-05-14 12:04:17 +02:00
Detlef Riekenberg 25cf21bddc devenum: Remove tabs and duplicate newlines from TRACE. 2012-05-08 09:41:14 +02:00
André Hentschel 8ef61a98f0 devenum: Remove unneeded shadow variables. 2012-04-18 17:11:23 +02:00
Jacek Caban 9940756d21 devenum: Removed useless structs. 2012-04-04 17:49:03 +02:00
Michael Stefaniuc 1e40dea125 devenum: COM cleanup for ICreateDevEnum. 2012-04-03 12:00:58 +02:00
Christian Costa a85957ae0e devenum: Reset moniker pointer before calling IFilterMapper2_RegisterFilter. 2012-03-14 12:59:08 +01:00
Maarten Lankhorst 737ed17f1b devenum: Scan special device categories more often. 2010-02-01 13:56:06 +01:00
Michael Stefaniuc 71d7331932 devenum: Avoid newlines inside FIXME messages. 2010-01-14 09:03:29 -06:00
Michael Stefaniuc f7c133284b devenum: Remove superfluous pointer casts. 2009-01-13 15:25:38 +01:00
Alexandre Julliard 7f66623d49 devenum: Make some functions static. 2008-12-02 15:27:15 +01:00
Juan Lang df592b3c3a devenum: Fix order of operations bug (Coverity id 709). 2008-09-11 12:12:30 +02:00
Alexander Dorofeyev e49eb1d60e devenum: Register legacy am filters in CreateClassEnumerator. 2008-07-01 13:45:38 +02:00
Alexander Dorofeyev de70686f17 devenum: Move locating category key to function, use it ParseDisplayName. 2008-07-01 13:45:38 +02:00
Andrew Talbot b8e10c75fd devenum: Remove unneeded cast. 2007-12-07 17:36:01 +01:00