summaryrefslogtreecommitdiff
path: root/test/v4l2_videodevice/stream_on_off.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/v4l2_videodevice/stream_on_off.cpp')
-rw-r--r--test/v4l2_videodevice/stream_on_off.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/v4l2_videodevice/stream_on_off.cpp b/test/v4l2_videodevice/stream_on_off.cpp
index 7664adc4..552df096 100644
--- a/test/v4l2_videodevice/stream_on_off.cpp
+++ b/test/v4l2_videodevice/stream_on_off.cpp
@@ -17,10 +17,8 @@ protected:
{
const unsigned int bufferCount = 8;
- pool_.createBuffers(bufferCount);
-
- int ret = capture_->exportBuffers(&pool_);
- if (ret)
+ int ret = capture_->exportBuffers(bufferCount, &buffers_);
+ if (ret < 0)
return TestFail;
ret = capture_->streamOn();