diff --git a/src/mynteye/uvc/linux/uvc-v4l2.cc b/src/mynteye/uvc/linux/uvc-v4l2.cc index 8db4629..ec8398a 100755 --- a/src/mynteye/uvc/linux/uvc-v4l2.cc +++ b/src/mynteye/uvc/linux/uvc-v4l2.cc @@ -197,6 +197,7 @@ struct device { } } } else { + throw_error() << dev_name + " is no video capture device"; } // Errors ignored } @@ -474,7 +475,8 @@ std::vector> query_devices( } try { - devices.push_back(std::make_shared(context, name)); + auto one_device = std::make_shared(context, name); + devices.push_back(one_device); } catch (const std::exception &e) { VLOG(2) << "Not a USB video device: " << e.what(); }