summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/libcamera/pipeline/raspberrypi/rpi_stream.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libcamera/pipeline/raspberrypi/rpi_stream.cpp b/src/libcamera/pipeline/raspberrypi/rpi_stream.cpp
index 1a42cc17..3a5dadab 100644
--- a/src/libcamera/pipeline/raspberrypi/rpi_stream.cpp
+++ b/src/libcamera/pipeline/raspberrypi/rpi_stream.cpp
@@ -163,9 +163,9 @@ void Stream::returnBuffer(FrameBuffer *buffer)
* If so, do it now as availableBuffers_ will not be empty.
*/
while (!requestBuffers_.empty()) {
- FrameBuffer *buffer = requestBuffers_.front();
+ FrameBuffer *requestBuffer = requestBuffers_.front();
- if (!buffer) {
+ if (!requestBuffer) {
/*
* We want to queue an internal buffer, but none
* are available. Can't do anything, quit the loop.
@@ -177,12 +177,12 @@ void Stream::returnBuffer(FrameBuffer *buffer)
* We want to queue an internal buffer, and at least one
* is available.
*/
- buffer = availableBuffers_.front();
+ requestBuffer = availableBuffers_.front();
availableBuffers_.pop();
}
requestBuffers_.pop();
- queueToDevice(buffer);
+ queueToDevice(requestBuffer);
}
}