summaryrefslogtreecommitdiff
path: root/utils/omap-wbcap.cpp
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ideasonboard.com>2022-12-22 12:04:50 +0200
committerTomi Valkeinen <tomi.valkeinen@ideasonboard.com>2022-12-22 12:04:50 +0200
commit2bd85abc108e0688384f42b0ec83dcd5a622d50d (patch)
tree903a9f221a2dc71435b52ace7c815f68217509f3 /utils/omap-wbcap.cpp
parent32b6f82fb55b7f9ce1cd8a9e2e8ebdc3a7ac746c (diff)
Code formatting fixes
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Diffstat (limited to 'utils/omap-wbcap.cpp')
-rw-r--r--utils/omap-wbcap.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/omap-wbcap.cpp b/utils/omap-wbcap.cpp
index 5080159..fc004cc 100644
--- a/utils/omap-wbcap.cpp
+++ b/utils/omap-wbcap.cpp
@@ -31,7 +31,7 @@ public:
m_capdev.set_queue_size(s_fbs.size(), v4l2::VideoMemoryType::DMABUF);
for (auto fb : s_free_fbs) {
- v4l2::VideoBuffer vbuf {};
+ v4l2::VideoBuffer vbuf{};
vbuf.m_mem_type = v4l2::VideoMemoryType::DMABUF;
vbuf.m_fd = fb->prime_fd(0);
@@ -65,7 +65,7 @@ public:
{
auto vbuf = m_capdev.dequeue();
- auto iter = find_if(s_wb_fbs.begin(), s_wb_fbs.end(), [fd=vbuf.m_fd](auto& fb) { return fb->prime_fd(0) == fd; });
+ auto iter = find_if(s_wb_fbs.begin(), s_wb_fbs.end(), [fd = vbuf.m_fd](auto& fb) { return fb->prime_fd(0) == fd; });
auto fb = *iter;
s_wb_fbs.erase(iter);
@@ -82,7 +82,7 @@ public:
auto fb = s_free_fbs.back();
s_free_fbs.pop_back();
- v4l2::VideoBuffer vbuf {};
+ v4l2::VideoBuffer vbuf{};
vbuf.m_mem_type = v4l2::VideoMemoryType::DMABUF;
vbuf.m_fd = fb->prime_fd(0);