[gstreamer-bugs] [Bug 636037] audiotestsrc timestamps are imprecise in general
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Tue Nov 30 16:28:23 PST 2010
https://bugzilla.gnome.org/show_bug.cgi?id=636037
GStreamer | gst-plugins-base | git
--- Comment #1 from Jordi <jordi.burguet.castell at gmail.com> 2010-12-01 00:28:17 UTC ---
Just to be more clear:
An example where one sees the problem, at rate=44100Hz if you start at t=0,
after 1 sample you will be at t = 1/rate = 22675.74 ns. If you get it with
gst_util_uint64_scale_int(), that's a 22675. But with
gst_util_uint64_scale_int_round() you get 22676, which is arguably the
best one.
As for the patch, it works because in audiotestsrc the timestamps are always
computed from the "bytestamps", that is, how many bytes away we are from
timestamp=0 (stored in a variable called "next_sample").
Finally, I've run the unit tests ("make check" in gst-plugins-base) and they
all passed with no error.
--
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the Gstreamer-bugs
mailing list