audioclock: make our internal time monotonic

Make the internal time increase monotonically.
This commit is contained in:
Wim Taymans 2009-04-22 18:35:40 +02:00 committed by Wim Taymans
parent 117686abc5
commit b9723f6e1c

View file

@ -203,6 +203,9 @@ gst_audio_clock_get_time (GstClock * clock)
aclock = GST_AUDIO_CLOCK_CAST (clock);
result = aclock->func (clock, aclock->user_data);
if (result == GST_CLOCK_TIME_NONE) {
result = aclock->last_time - aclock->abidata.ABI.time_offset;
}
return result;
}