Message ID | 20230609-empty-devnode-v1-1-e2c37c7b7dc9@skidata.com |
---|---|
State | Superseded |
Headers | show |
Series |
|
Related | show |
diff --git a/src/libcamera/device_enumerator.cpp b/src/libcamera/device_enumerator.cpp index f2e055de..f2d943d1 100644 --- a/src/libcamera/device_enumerator.cpp +++ b/src/libcamera/device_enumerator.cpp @@ -100,9 +100,13 @@ bool DeviceMatch::match(const MediaDevice *device) const bool found = false; for (const MediaEntity *entity : device->entities()) { - if (name == entity->name()) { + if (name == entity->name() && !entity->deviceNode().empty()) { found = true; break; + } else if (name == entity->name()) { + LOG(DeviceEnumerator, Debug) + << "Skip " << entity->name() + << ": no device node"; } }