audioclock: make our internal time monotonic
Make the internal time increase monotonically.
This commit is contained in:
parent
117686abc5
commit
b9723f6e1c
@ -203,6 +203,9 @@ gst_audio_clock_get_time (GstClock * clock)
|
|||||||
aclock = GST_AUDIO_CLOCK_CAST (clock);
|
aclock = GST_AUDIO_CLOCK_CAST (clock);
|
||||||
|
|
||||||
result = aclock->func (clock, aclock->user_data);
|
result = aclock->func (clock, aclock->user_data);
|
||||||
|
if (result == GST_CLOCK_TIME_NONE) {
|
||||||
|
result = aclock->last_time - aclock->abidata.ABI.time_offset;
|
||||||
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user