summaryrefslogtreecommitdiff
path: root/test/v4l2_videodevice
diff options
context:
space:
mode:
Diffstat (limited to 'test/v4l2_videodevice')
-rw-r--r--test/v4l2_videodevice/buffer_sharing.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/v4l2_videodevice/buffer_sharing.cpp b/test/v4l2_videodevice/buffer_sharing.cpp
index da052f34..12ec88f2 100644
--- a/test/v4l2_videodevice/buffer_sharing.cpp
+++ b/test/v4l2_videodevice/buffer_sharing.cpp
@@ -95,6 +95,9 @@ protected:
std::cout << "Received capture buffer: " << buffer->index()
<< " sequence " << buffer->sequence() << std::endl;
+ if (buffer->status() != Buffer::BufferSuccess)
+ return;
+
output_->queueBuffer(buffer);
framesCaptured_++;
}
@@ -104,6 +107,9 @@ protected:
std::cout << "Received output buffer: " << buffer->index()
<< " sequence " << buffer->sequence() << std::endl;
+ if (buffer->status() != Buffer::BufferSuccess)
+ return;
+
capture_->queueBuffer(buffer);
framesOutput_++;
}