summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/camera/buffer_import.cpp2
-rw-r--r--test/camera/capture.cpp2
-rw-r--r--test/v4l2_videodevice/buffer_sharing.cpp8
3 files changed, 8 insertions, 4 deletions
diff --git a/test/camera/buffer_import.cpp b/test/camera/buffer_import.cpp
index e5c010d8..3ba6ce96 100644
--- a/test/camera/buffer_import.cpp
+++ b/test/camera/buffer_import.cpp
@@ -275,7 +275,7 @@ public:
protected:
void bufferComplete(Request *request, Buffer *buffer)
{
- if (buffer->status() != Buffer::BufferSuccess)
+ if (buffer->metadata().status != FrameMetadata::FrameSuccess)
return;
unsigned int index = buffer->index();
diff --git a/test/camera/capture.cpp b/test/camera/capture.cpp
index ca1ebe41..0d9ffc47 100644
--- a/test/camera/capture.cpp
+++ b/test/camera/capture.cpp
@@ -28,7 +28,7 @@ protected:
void bufferComplete(Request *request, Buffer *buffer)
{
- if (buffer->status() != Buffer::BufferSuccess)
+ if (buffer->metadata().status != FrameMetadata::FrameSuccess)
return;
completeBuffersCount_++;
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);