[gst-devel] fix for timestamps in audiotestsrc
Tristan Matthews
tristan at sat.qc.ca
Mon Nov 29 04:11:27 CET 2010
2010/11/28 Jordi Burguet Castell <jordi.burguet.castell at gmail.com>
> Hello,
>
> The audiotestsrc element sets and reports the timestamps of the
> buffers it creates with a small error.
>
> Basically, by using gst_util_uint64_scale_int() in some places, the
> timestamp can be off by almost a nanosecond. In our pipeline we are
> sensitive to any error in the timestamp, and because of this (small)
> problem we can't use audiotestsrc to test it.
>
> Fortunately, the fix is very easy. In audiotestsrc the timestamp (in
> "next_time") is computed always from next_sample, so it can be solved
> by changing gst_util_uint64_scale_int() to
> gst_util_uint64_scale_int_round() (note the extra "_round")
> everywhere. Patch attached.
>
> Please let me know if this is ok, or if I should report a bug in some
> other way, etc.
>
>
You should file a bug against gst-plugins-base:
https://bugzilla.gnome.org/buglist.cgi?quicksearch=component%3Agst-plugins-base+product%3A
"GStreamer"+
Thanks,
> Jordi
>
> --
> Jordi Burguet-Castell <jordi at gravity.phys.uwm.edu>
> UWM Physics Dept. 464
> 1900 E. Kenwood Blvd. Milwaukee WI 53211 USA
> +1 414-229-2590
>
>
> ------------------------------------------------------------------------------
> Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
> Tap into the largest installed PC base & get more eyes on your game by
> optimizing for Intel(R) Graphics Technology. Get started today with the
> Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
> http://p.sf.net/sfu/intelisp-dev2dev
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>
--
Tristan Matthews
email: tristan at sat.qc.ca
web: http://tristanswork.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20101128/e69d445b/attachment.htm>
More information about the gstreamer-devel
mailing list