From f6bf337540bde8b63f237ce3575bf201baf7f329 Mon Sep 17 00:00:00 2001 From: uvos Date: Sat, 18 Nov 2023 15:45:06 +0100 Subject: [PATCH] better debug prints --- webcam.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webcam.cpp b/webcam.cpp index 3891528..a5c8fd8 100644 --- a/webcam.cpp +++ b/webcam.cpp @@ -336,7 +336,8 @@ void Webcam::init_device(void) { // note that libv4l2 (look for 'v4l-utils') provides helpers // to manage conversions - throw runtime_error("Webcam does not support the requested format. Support for more formats need to be added!"); + throw runtime_error("Webcam does not support the requested format. Support for more formats need to be added! video format is " + + std::to_string(fmt.fmt.pix.pixelformat)); } /* Note VIDIOC_S_FMT may change width and height. */