Skip to content
Commit 4d14adaa authored by Philipp Zabel's avatar Philipp Zabel Committed by Marius Vlad
Browse files

backend-pipewire: make sure to finish frames with timestamps in the past



Round up the ms delay to make sure that the finish_frame_timer always
expires after the next frame_time. That way, finish_frame_handler()
never passes a timestamp in the future to weston_output_finish_frame().
Setting frame_time into the future risks hitting an assert in
weston_output_finish_frame(), when it is called from start_repaint_loop
within the frame interval.

Use CLIP() to simplify limiting the ms delay to a reasonable range.

Signed-off-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
parent b3d94c98
Loading
Loading
Loading
Pipeline #986454 passed with stages
in 2 minutes and 47 seconds
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