summaryrefslogtreecommitdiff
path: root/src/libcamera/pipeline/rpi/vc4/raspberrypi.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcamera/pipeline/rpi/vc4/raspberrypi.cpp')
-rw-r--r--src/libcamera/pipeline/rpi/vc4/raspberrypi.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcamera/pipeline/rpi/vc4/raspberrypi.cpp b/src/libcamera/pipeline/rpi/vc4/raspberrypi.cpp
index af464d15..96749c0d 100644
--- a/src/libcamera/pipeline/rpi/vc4/raspberrypi.cpp
+++ b/src/libcamera/pipeline/rpi/vc4/raspberrypi.cpp
@@ -1210,7 +1210,7 @@ int PipelineHandlerRPi::queueRequestDevice(Camera *camera, Request *request)
continue;
FrameBuffer *buffer = request->findBuffer(stream);
- if (buffer && stream->getBufferId(buffer) == -1) {
+ if (buffer && !stream->getBufferId(buffer)) {
/*
* This buffer is not recognised, so it must have been allocated
* outside the v4l2 device. Store it in the stream buffer list
@@ -2042,7 +2042,7 @@ void RPiCameraData::unicamBufferDequeue(FrameBuffer *buffer)
for (RPi::Stream &s : unicam_) {
index = s.getBufferId(buffer);
- if (index != -1) {
+ if (index) {
stream = &s;
break;
}
@@ -2098,7 +2098,7 @@ void RPiCameraData::ispOutputDequeue(FrameBuffer *buffer)
for (RPi::Stream &s : isp_) {
index = s.getBufferId(buffer);
- if (index != -1) {
+ if (index) {
stream = &s;
break;
}