gstreamer/gst/liveadder
Michael Olbrich 93ec45a6df liveadder: round when calculation length from duration
liveadder sometimes calculates the offsets incorrectly before adding. The
resulting errors can easily be heard when mixing silence with a sine.
I'm not sure what the exact conditions are to trigger this, but it definitively
happens when the buffers of two streams have a different duration and buffer
length and duration don't match exactly for one stream because of rounding
errors (e.g.  duration=0:00:00.021333333)

I have to admit, I got lost in the math somewhere but it seems that not
rounding in gst_live_adder_length_from_duration() causes 1 sample overlaps in
consecutive buffers from the same stream.
When using gst_util_uint64_scale_int_round() instead of just truncating the
sine sound correctly again.

https://bugzilla.gnome.org/show_bug.cgi?id=708345
2013-09-28 13:31:13 +02:00
..
liveadder.c liveadder: round when calculation length from duration 2013-09-28 13:31:13 +02:00
liveadder.h liveadder: don't use deprecated GLib threading API 2013-02-11 12:01:19 +00:00
Makefile.am gst: Add better support for static plugins 2013-04-15 15:59:22 +02:00