The side effect of not filtering on V4L2_CAP_VIDEO_CAPTURE is that every device is enumerated twice. Because we look up devices by name, and the device that supports V4L2_CAP_VIDEO_CAPTURE seems to always appear first in /dev/video, this does not seem to end up with us ever choosing an inappropriate device. We might get away with just filtering device names from the list, but if the order of devices ever changed in /dev/video there could be problems. Bug: webrtc:11641 Change-Id: I16fee4edc873838ed4643ee16a8bbc699d6bbcf5 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/176460 Reviewed-by: Per Kjellander <perkj@webrtc.org> Commit-Queue: Dan Minor <dminor@webrtc.org> Cr-Commit-Position: refs/heads/master@{#31508}