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:
parent
862566a2b0
commit
779633acde
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue