Commit 779633ac authored by Damjan Jovanovic's avatar Damjan Jovanovic Committed by Alexandre Julliard

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: 's avatarDamjan Jovanovic <damjan.jov@gmail.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 862566a2
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment