Skip to content
Snippets Groups Projects
Unverified Commit e074e956 authored by Sébastien Blin's avatar Sébastien Blin
Browse files

v4l2: fallback on path if no SERIAL

This allows virtual cameras to be detected by Jami and be able to
stream from OBS for example.

Change-Id: Ib2554e80009876100f77fa62fd8e18bbc01ba717
parent 3f1c2f90
No related branches found
No related tags found
No related merge requests found
......@@ -151,7 +151,9 @@ VideoDeviceMonitorImpl::VideoDeviceMonitorImpl(VideoDeviceMonitor* monitor)
monitor_->addDevice(unique_name, {{{"devPath", path}}});
currentPathToId_.emplace(path, unique_name);
} catch (const std::exception& e) {
JAMI_ERR("%s", e.what());
JAMI_WARN("udev: %s, fallback on path (your camera may be a fake camera)", e.what());
monitor_->addDevice(path, {{{"devPath", path}}});
currentPathToId_.emplace(path, path);
}
}
udev_device_unref(dev);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment