Fix 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. Review URL: https://codereview.chromium.org/541603002 Cr-Commit-Position: refs/heads/master@{#293530}
Showing
Please register or sign in to comment