libplacebo
libplacebo copied to clipboard
Using pl_queue_push and queue count appears to be too high
I am using a capture device to feed frames using pl_queue_push https://github.com/spedagadi/eva-dtm/blob/003a847b22386dbf2ac4b3c55b1203f8e8d25b55/src/main.c#L320 and it looks like there are usually 15 frames in the queue causing a delay. Good thing is the delay is not growing but I would like to be able to process latest frame as soon as possible.
I also have a suspicion that the ffmpeg's decoder may have some internal latency as well but in debugging it is clear the pl_queue is not working with latest frame. Is it possible to make sure there are no pending items in the queue for an incoming frame?