io: add offset for clock times

Add an offset to apply to the clock time before we can compare to the
segment values. This way we can keep the segment start independent of the
clock values and we only need to adjust the offset when paused. It's
like the base_time in GStreamer to calculate the running time.
This commit is contained in:
Wim Taymans 2019-08-28 10:28:06 +02:00
parent 2805713da3
commit 0a15e1f804
4 changed files with 31 additions and 19 deletions

@ -1 +1 @@
Subproject commit 796278b207e686403638d1c850ce01fa0a0fee48
Subproject commit a52ad27a169ffd6abb4090e1d77385bd879a1d43