diff options
author | Niklas Söderlund <niklas.soderlund@ragnatech.se> | 2019-12-18 18:47:45 +0100 |
---|---|---|
committer | Niklas Söderlund <niklas.soderlund@ragnatech.se> | 2020-01-12 16:10:37 +0100 |
commit | f0d928b56eb3cf34bd61a94ccdaeedafd8108c49 (patch) | |
tree | cace3dc35ca1614f15c5f1c3aaee839a4ceb4a13 /test/v4l2_videodevice/stream_on_off.cpp | |
parent | cadae67e45785dc5dc005adb63c2dec841f44b1d (diff) |
test: v4l2_videodevice: Switch to FrameBuffer interface
The V4L2VideoDevice class can now operate using a FrameBuffer interface,
switch all test cases to use it.
Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'test/v4l2_videodevice/stream_on_off.cpp')
-rw-r--r-- | test/v4l2_videodevice/stream_on_off.cpp | 6 |
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(); |