[gstreamer-bugs] [Bug 148609] [alsasrc] weird timestamp generated

bugzilla-daemon at bugzilla.gnome.org bugzilla-daemon at bugzilla.gnome.org
Tue Feb 8 13:44:25 PST 2005


Please DO NOT reply to this by email. All additional comments should be made in
the comments box of this bug report.

 http://bugzilla.gnome.org/show_bug.cgi?id=148609
 GStreamer | gst-plugins | Ver: HEAD CVS





------- Additional Comments From Ronald Bultje  2005-02-08 16:44 -------
Alsa timestamps are broken when using external clocks. I've seen other bug
reports where alsasrc ! alsasink does this. Now, the issue is in time
generation. this example will focus on alsasink/alsasrc. It uses the alsasink
clock. Alsasrc starts capturing, timestamps is calculated on line 439, but we
didn't play yet, so realtime is 0, so outreal is -duration, which is negative,
so (time=guint64) ~300years.

A correct fix is to test that real >= dur before subtracting real. We may lose a
few samples because of that in the second buffer, but that's just required, I'm
affraid.

------- You are receiving this mail because: -------
You are the assignee for the bug.
You are the QA contact for the bug.




More information about the Gstreamer-bugs mailing list