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>
This commit is contained in:
Damjan Jovanovic 2019-04-23 03:15:23 +02:00 committed by Alexandre Julliard
parent 862566a2b0
commit 779633acde
1 changed files with 1 additions and 1 deletions

View File

@ -793,7 +793,7 @@ static void register_avicap_devices(void)
{
if (!capGetDriverDescriptionW(i, friendlyname, ARRAY_SIZE(friendlyname),
version, ARRAY_SIZE(version)))
break;
continue;
name[5] = '0' + i;