summaryrefslogtreecommitdiff
path: root/src/qcam/viewfinder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qcam/viewfinder.cpp')
-rw-r--r--src/qcam/viewfinder.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/qcam/viewfinder.cpp b/src/qcam/viewfinder.cpp
index d00edc33..b8feabd5 100644
--- a/src/qcam/viewfinder.cpp
+++ b/src/qcam/viewfinder.cpp
@@ -11,6 +11,7 @@
#include <QImageWriter>
#include <QMutexLocker>
#include <QPainter>
+#include <QtDebug>
#include "format_converter.h"
@@ -27,6 +28,11 @@ ViewFinder::~ViewFinder()
void ViewFinder::display(const libcamera::FrameBuffer *buffer,
MappedBuffer *map)
{
+ if (buffer->planes().size() != 1) {
+ qWarning() << "Multi-planar buffers are not supported";
+ return;
+ }
+
QMutexLocker locker(&mutex_);
/*