summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/libcamera/pipeline/uvcvideo.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libcamera/pipeline/uvcvideo.cpp b/src/libcamera/pipeline/uvcvideo.cpp
index c51e8bc1..2ebdb2b9 100644
--- a/src/libcamera/pipeline/uvcvideo.cpp
+++ b/src/libcamera/pipeline/uvcvideo.cpp
@@ -8,12 +8,15 @@
#include <libcamera/camera.h>
#include "device_enumerator.h"
+#include "log.h"
#include "media_device.h"
#include "pipeline_handler.h"
#include "v4l2_device.h"
namespace libcamera {
+LOG_DEFINE_CATEGORY(UVC)
+
class PipelineHandlerUVC : public PipelineHandler
{
public:
@@ -60,6 +63,9 @@ bool PipelineHandlerUVC::match(DeviceEnumerator *enumerator)
}
if (!video_ || video_->open()) {
+ if (!video_)
+ LOG(UVC, Error) << "Could not find a default video device";
+
media_->release();
return false;
}