Delay of GMSL camera


I need just 1 fps of gmsl camera image.
But when I read frame frame camera, it always return the oldest image in the queue.
Maybe, when fifo is filled, the new frame will not written to queue.
So, I always get the oldest one.

How can I read newest frame?

Dear jinj,

Did you check EGLStream Support for Multiple Consumers/Producers part in our doc?

Thank you for your replay.

Yes, the multi-consumer model can achieve that by setting a consumer to read a image for doing nothing repeatedly.

It is a approach to read the newest one ,but not perfect.Because it will waste too much CPU resource.
A more efficient method is that the camera driver always overwrite the oldest buffer in queue.