When stopping the stream buffers have been queued, in which case their completion is never be notified to the user. This can lead to memory leaks. Fix it by notifying completion of all queued buffers with the status set to error. As a result the base PipelineHandler implementation can be simplified, as all requests complete as the result of stopping the stream. The stop() method that manually completes all queued requests isn't needed anymore. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> |
||
---|---|---|
.. | ||
buffer_sharing.cpp | ||
capture_async.cpp | ||
double_open.cpp | ||
formats.cpp | ||
meson.build | ||
request_buffers.cpp | ||
stream_on_off.cpp | ||
v4l2_videodevice_test.cpp | ||
v4l2_videodevice_test.h |