Skip to content

v4l2videoenc: ensure OUTPUT buffer pool is activated if processing thread is running

A RECONFIGURE event may trigger an allocation query from upstream on the v4l2jpegenc event. If the format is the same, the format on the encoder is not changed and the processing thread running, the processing stops because no buffer can be acquired from the OUTPUT buffer pool.

To avoid this situation, the v4l2videoenc has to ensure that the OUTPUT pool is active when a new buffer arrives, even if it is a buffer from a different pool.

As the processing thread of the video encoder is not stopped, it doesn't have to be restarted. However, an upstream element may have deactivated the OUTPUT buffer pool.

Fixes: #1782 (closed)

Edited by Michael Tretter

Merge request reports