mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 19:20:35 +00:00
audioclock: make our internal time monotonic
Make the internal time increase monotonically.
This commit is contained in:
parent
117686abc5
commit
b9723f6e1c
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue