audiorate: accumulate offset by time diff
authorJustin Kim <justin.kim@collabora.com>
Fri, 5 Jan 2018 07:07:54 +0000 (16:07 +0900)
committerOlivier CrĂȘte <olivier.crete@collabora.com>
Thu, 19 Jul 2018 22:19:19 +0000 (18:19 -0400)
commit4fa850e3e6c039000fc7f648de238af6c2278469
treeab42d3bb2d783c42931888c5a84c51ae8499c0f5
parent83c7dd233568c1774afdb7958940401aeef38020
audiorate: accumulate offset by time diff

The fomula, 'offset = time / rate', is correct only if
the rate is never changed. When the rate is changed,
the offset should be re-calculated based on the previous
offset.

https://bugzilla.gnome.org/show_bug.cgi?id=791269
gst/audiorate/gstaudiorate.c
gst/audiorate/gstaudiorate.h
tests/check/Makefile.am
tests/check/elements/audiorate.c