[gstreamer-bugs] [Bug 586570] Add GAP Flag support to audioresample

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Mon Oct 25 05:42:51 PDT 2010


https://bugzilla.gnome.org/show_bug.cgi?id=586570
  GStreamer | gst-plugins-base | git

--- Comment #20 from Sebastian Dröge <slomo at circular-chaos.org> 2010-10-25 12:42:39 UTC ---
(In reply to comment #19)
> Here is why these three unit tests are failing.  The effect of this patch is to
> shrink each gap by half a filter-length on either side.  I decided to treat the
> first buffer of a new segment as if it had been preceded by a gap, so upon
> output there is an extra half-filter-length of non-gap data at the beginning of
> the stream.

You shouldn't handle the first buffers after a newsegment event as gap and you
should never output the half-filter-length samples at the beginning after
initializing the resampler.
If you put 1024 samples into the resampler with filter length 8, you should
output exactly ratio*1024 samples, produced from the 1024 samples and dropping
ratio*4 at the beginning and ratio*4 samples at the end produced from some
silence.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.



More information about the Gstreamer-bugs mailing list