Skip to content

Commit 7516098

Browse files
committed
helpers: backend_device: Dequeue the config buffer after job completion
The config buffer might be re-queued after job completion, so dequeue it to avoid an IOCTL failure. Signed-off-by: Naushir Patuck <[email protected]>
1 parent f2bbf7e commit 7516098

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/helpers/backend_device.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,10 @@ int BackendDevice::Run(const std::map<std::string, V4l2Device::Buffer> &buffers)
138138
ret = -1;
139139
}
140140

141+
// Must dequeue the config buffer in case it's used again.
142+
if (nodes_.at("pispbe-config").DequeueBuffer(1000) < 0)
143+
ret = -1;
144+
141145
for (auto const &n : nodes_enabled_)
142146
nodes_.at(n).StreamOff();
143147

0 commit comments

Comments
 (0)