Commit 501ff7f0 authored by Alexander Alekhin's avatar Alexander Alekhin

videoio(v4l2): use logging, update handling of EBUSY, device closing

- DEBUG logging compilation is enabled for all videoio backends
- eliminate output through perror(), stderr
parent 373160ce
This diff is collapsed.
......@@ -48,6 +48,12 @@
#include "opencv2/core/private.hpp"
#include <opencv2/core/utils/configuration.private.hpp>
#include <opencv2/core/utils/logger.defines.hpp>
#ifdef NDEBUG
#define CV_LOG_STRIP_LEVEL CV_LOG_LEVEL_DEBUG + 1
#else
#define CV_LOG_STRIP_LEVEL CV_LOG_LEVEL_VERBOSE + 1
#endif
#include <opencv2/core/utils/logger.hpp>
#include "opencv2/imgcodecs.hpp"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment