Skip to content
Snippets Groups Projects
Commit 62166cd4 authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Fix for no pylon sdk

parent 466620be
Branches
No related tags found
1 merge request!316Resolves #343 GUI and Frame Refactor
Pipeline #28173 passed
......@@ -71,8 +71,12 @@ StereoVideoSource::~StereoVideoSource() {
bool StereoVideoSource::supported(const std::string &dev) {
if (dev == "pylon") {
#ifdef HAVE_PYLON
auto pylon_devices = ftl::rgbd::detail::PylonDevice::listDevices();
return pylon_devices.size() > 0;
#else
return false;
#endif
} else if (dev == "video") {
return true;
} else if (dev == "camera") {
......
......@@ -63,7 +63,6 @@ std::function<bool(const ftl::data::Frame &, ftl::codecs::Channel, std::vector<u
void ftl::data::setTypeEncoder(size_t type, const std::function<bool(const ftl::data::Frame &, ftl::codecs::Channel, std::vector<uint8_t> &)> &e) {
encoders[type] = e;
LOG(INFO) << "Create msgpack encoder: " << type << "(" << ((e) ? "true" : "false") << ")";
}
//==============================================================================
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment