testclock: Allow calling crank with a past entry
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Wed, 19 Jun 2019 21:39:58 +0000 (17:39 -0400)
committerNicolas Dufresne <nicolas@ndufresne.ca>
Thu, 27 Jun 2019 20:09:43 +0000 (20:09 +0000)
commit91543bd78dc822bee50460a1055cb2325493c974
tree8179e968bc408e3a167f29d7387e85d84dc30213
parent6a20fcc97ad0bef2afefd2f8d87f6947afe2f6a9
testclock: Allow calling crank with a past entry

At the moment, we can only use crank if the pending entry is in the
future. This patch leaves the clock time to the same point if the
pending entry was in the past. This still execute a single entry. This
will be needed for the jitterbuffer, since as soon as we stop waking up
the jitterbuffer when the timer is reschedule later, we may endup with
such case in the unit tests.

Related to #608
libs/gst/check/gsttestclock.c
tests/check/libs/gsttestclock.c