Skip to content
Snippets Groups Projects
Commit b853cfe7 authored by Marton Balint's avatar Marton Balint
Browse files

ffplay: remove refresh thread to achieve more precise frame delay


We use a refresh loop which displays the frames and also does the polling for
pending events in a non-blocking way. If we know the required delay until the
next frame, then exactly that amount of sleeping will be done. After each
handled event we check if we have to display a frame which kind of makes
displaying the frame a high priority event.

This improves greatly the smoothness of the video output especially with 50fps
content.

Signed-off-by: default avatarMarton Balint <cus@passwd.hu>
parent c3fb20ba
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment