diff options
author | Roman Stratiienko <r.stratiienko@gmail.com> | 2021-11-09 02:12:25 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2021-11-09 02:12:25 +0000 |
commit | 895f244b7bfc794d99c889c9539f2f249525b5ff (patch) | |
tree | e5015fe824fcdf1cc50eb021dd3168220dafa508 | |
parent | e11c60ddb2410eb87e76bd811b6f727841dca4d8 (diff) | |
parent | 309f289e655f5ddd5af33248a995ad1031b16d2c (diff) | |
download | v4l2_codec2-895f244b7bfc794d99c889c9539f2f249525b5ff.tar.gz |
V4L2Device: Increase max /dev/video device index from 9 to 15 am: 95568fdc85 am: 309f289e65
Original change: https://android-review.googlesource.com/c/platform/external/v4l2_codec2/+/1882080
Change-Id: I252fc0f5e7abbc2c49d6229797811982731c9798
-rw-r--r-- | common/V4L2Device.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/V4L2Device.cpp b/common/V4L2Device.cpp index 1efb4e3..68a9dca 100644 --- a/common/V4L2Device.cpp +++ b/common/V4L2Device.cpp @@ -1986,8 +1986,8 @@ void V4L2Device::enumerateDevicesForType(Type type) { candidatePaths.push_back(devicePattern); // We are sandboxed, so we can't query directory contents to check which devices are actually - // available. Try to open the first 10; if not present, we will just fail to open immediately. - for (int i = 0; i < 10; ++i) { + // available. Try to open the first 16; if not present, we will just fail to open immediately. + for (int i = 0; i < 16; ++i) { candidatePaths.push_back(base::StringPrintf("%s%d", devicePattern.c_str(), i)); } |