DescriptionFix if-statement in win video capture that ignores fake DirectShow filters
The parentheses were wrong previously in this if-statement:
if ((wcsstr(str_ptr, L"(VFW)") == NULL) &&
lstrlenW(str_ptr) < name_length ||
(!(LowerCaseEqualsASCII(str_ptr, str_ptr + name_length,
kGoogleCameraAdapter))))
The condition lstrlenW(str_ptr) < name_length should be grouped with the condition LowerCaseEqualsASCII(...), not wcsstr(str_ptr, L"(VFW)") == NULL.
The check lstrlenW(str_ptr) < name_length is redundant, so I removed it.
Committed: https://crrev.com/dcad7f4830bb4ff1ec0e0f96b9d5fe78ce302cb1
Cr-Commit-Position: refs/heads/master@{#293530}
Patch Set 1 #
Total comments: 2
Patch Set 2 : mcasas@ comments #
Total comments: 3
Patch Set 3 : mcasas@s and tommi@s comments #
Total comments: 3
Messages
Total messages: 13 (3 generated)
|