summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/v4l2_device/capture_async.cpp4
-rw-r--r--test/v4l2_device/request_buffers.cpp4
-rw-r--r--test/v4l2_device/stream_on_off.cpp4
-rw-r--r--test/v4l2_device/v4l2_device_test.h2
4 files changed, 6 insertions, 8 deletions
diff --git a/test/v4l2_device/capture_async.cpp b/test/v4l2_device/capture_async.cpp
index ba37c973..511368d6 100644
--- a/test/v4l2_device/capture_async.cpp
+++ b/test/v4l2_device/capture_async.cpp
@@ -38,9 +38,9 @@ protected:
Timer timeout;
int ret;
- createBuffers(bufferCount);
+ pool_.createBuffers(bufferCount);
- ret = dev_->exportBuffers(bufferCount, &pool_);
+ ret = dev_->exportBuffers(&pool_);
if (ret)
return TestFail;
diff --git a/test/v4l2_device/request_buffers.cpp b/test/v4l2_device/request_buffers.cpp
index bc6ff2c1..26d7d952 100644
--- a/test/v4l2_device/request_buffers.cpp
+++ b/test/v4l2_device/request_buffers.cpp
@@ -19,9 +19,9 @@ protected:
*/
const unsigned int bufferCount = 8;
- createBuffers(bufferCount);
+ pool_.createBuffers(bufferCount);
- int ret = dev_->exportBuffers(bufferCount, &pool_);
+ int ret = dev_->exportBuffers(&pool_);
if (ret)
return TestFail;
diff --git a/test/v4l2_device/stream_on_off.cpp b/test/v4l2_device/stream_on_off.cpp
index b564d2a2..861d8d69 100644
--- a/test/v4l2_device/stream_on_off.cpp
+++ b/test/v4l2_device/stream_on_off.cpp
@@ -14,9 +14,9 @@ protected:
{
const unsigned int bufferCount = 8;
- createBuffers(bufferCount);
+ pool_.createBuffers(bufferCount);
- int ret = dev_->exportBuffers(bufferCount, &pool_);
+ int ret = dev_->exportBuffers(&pool_);
if (ret)
return TestFail;
diff --git a/test/v4l2_device/v4l2_device_test.h b/test/v4l2_device/v4l2_device_test.h
index f22f0bb5..43539655 100644
--- a/test/v4l2_device/v4l2_device_test.h
+++ b/test/v4l2_device/v4l2_device_test.h
@@ -24,8 +24,6 @@ class V4L2DeviceTest : public Test
public:
V4L2DeviceTest() : dev_(nullptr){};
- void createBuffers(unsigned int qty) { pool_.createBuffers(qty); }
-
protected:
int init();
void cleanup();