summaryrefslogtreecommitdiff
path: root/test/v4l2_videodevice/buffer_sharing.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/v4l2_videodevice/buffer_sharing.cpp')
-rw-r--r--test/v4l2_videodevice/buffer_sharing.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/v4l2_videodevice/buffer_sharing.cpp b/test/v4l2_videodevice/buffer_sharing.cpp
index 3a56862c..fe48b2e9 100644
--- a/test/v4l2_videodevice/buffer_sharing.cpp
+++ b/test/v4l2_videodevice/buffer_sharing.cpp
@@ -92,9 +92,11 @@ protected:
void captureBufferReady(Buffer *buffer)
{
+ const FrameMetadata &metadata = buffer->metadata();
+
std::cout << "Received capture buffer" << std::endl;
- if (buffer->status() != Buffer::BufferSuccess)
+ if (metadata.status != FrameMetadata::FrameSuccess)
return;
output_->queueBuffer(buffer);
@@ -103,9 +105,11 @@ protected:
void outputBufferReady(Buffer *buffer)
{
+ const FrameMetadata &metadata = buffer->metadata();
+
std::cout << "Received output buffer" << std::endl;
- if (buffer->status() != Buffer::BufferSuccess)
+ if (metadata.status != FrameMetadata::FrameSuccess)
return;
capture_->queueBuffer(buffer);