Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
7c743a49
Commit
7c743a49
authored
Apr 20, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Apr 22, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
>
parent
1b91c113
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
createdevenum.c
dlls/devenum/createdevenum.c
+5
-4
No files found.
dlls/devenum/createdevenum.c
View file @
7c743a49
...
...
@@ -775,9 +775,9 @@ static void register_vfw_codecs(void)
static
void
register_avicap_devices
(
void
)
{
static
const
WCHAR
vfwindexW
[]
=
{
'V'
,
'F'
,
'W'
,
'I'
,
'n'
,
'd'
,
'e'
,
'x'
,
0
};
WCHAR
friendlyname
[]
=
{
'v'
,
'i'
,
'd'
,
'e'
,
'o'
,
'0'
,
0
};
WCHAR
name
[]
=
{
'v'
,
'i'
,
'd'
,
'e'
,
'o'
,
'0'
,
0
};
WCHAR
friendlyname
[
32
],
version
[
32
];
IPropertyBag
*
prop_bag
=
NULL
;
WCHAR
name
[
32
],
version
[
32
];
REGFILTERPINS2
rgpins
=
{
0
};
REGPINTYPES
rgtypes
;
REGFILTER2
rgf
;
...
...
@@ -791,10 +791,11 @@ static void register_avicap_devices(void)
for
(
i
=
0
;
i
<
10
;
++
i
)
{
if
(
!
capGetDriverDescriptionW
(
i
,
name
,
ARRAY_SIZE
(
name
),
version
,
ARRAY_SIZE
(
version
)))
if
(
!
capGetDriverDescriptionW
(
i
,
friendlyname
,
ARRAY_SIZE
(
friendlyname
),
version
,
ARRAY_SIZE
(
version
)))
break
;
friendly
name
[
5
]
=
'0'
+
i
;
name
[
5
]
=
'0'
+
i
;
hr
=
register_codec
(
&
CLSID_VideoInputDeviceCategory
,
name
,
&
CLSID_VfwCapture
,
friendlyname
,
&
prop_bag
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment