Skip to content

systemclock: Update monotonic reference time when re-scheduling

Edward Hervey requested to merge bilboed/gstreamer:clock-spin into 1.18

There is no guarantee that the clock is currently advancing, therefore if we re-schedule (because of timeouts) a clock wait, we need to re-acquire the current monotonic clock value against which we will wait.

Avoids spinning the cpu like mad (due to constant timeout) when clocks are PAUSED.

Fixed #673 (closed)

Merge request reports