Skip to content

Commit

Permalink
audioclock: make our internal time monotonic
Browse files Browse the repository at this point in the history
Make the internal time increase monotonically.
  • Loading branch information
Wim Taymans authored and Wim Taymans committed May 13, 2009
1 parent 117686a commit b9723f6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gst-libs/gst/audio/gstaudioclock.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit b9723f6

Please sign in to comment.