Skip to content

v4l2bufferpool: Set Video Meta to Imported Buffers

Sidraya Jayagond requested to merge Sidraya/gstreamer:fix-v4l2bufferpool into main

When importing dmabufs, the video meta is set on the dest buffer, but not on the src buffer. In this case, the src buffer is not made aware of the stride of the video buffer, which is needed to properly display the buffer.

This is a result of the v4l2 plugin creating it's own empty dmabuf pool of GstBuffers, and then assigning the memory from the downstream GstBuffer. We then update the video meta of the buffer in our pool, but not the downstream pool.

The downstream pool buffer should be updated as well.

Signed-off-by: Sidraya sidraya.bj@pathpartnertech.com

Merge request reports