Delay of GMSL camera

Hello

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?
https://docs.nvidia.com/drive/active/5.1.0.2L/nvvib_docs/index.html#page/DRIVE_OS_Linux_SDK_Development_Guide%2FGraphics%2Fgraphics_guide_eglstreams.html%23wwconnect_header

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.