audiobasesink: Improve clock skew corrections.
authorThomas Bluemel <tbluemel@control4.com>
Wed, 1 Nov 2017 16:25:49 +0000 (10:25 -0600)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Wed, 6 Jun 2018 20:11:45 +0000 (16:11 -0400)
commit7d3c098a7cbce743448aa900ec7ac5f9bc032060
treed8c1f53005f567feaab954af3661e396bc69575f
parent1ceccb5b58a080c00fb521cee5c5fc13b46d73cb
audiobasesink: Improve clock skew corrections.

The external time should be moved only as much as needed
to get back to the ideal center point, so that the clock
is still allowed to drift both directions after the correction.
This reduces excessive back and forth corrections that were
caused by the assumption of a linear drift.

https://bugzilla.gnome.org/show_bug.cgi?id=788006
gst-libs/gst/audio/gstaudiobasesink.c