[Bug 725078] audiobasesink: clip start samples to match clipped timestamp from skew algorithm
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Wed Nov 12 05:40:06 PST 2014
https://bugzilla.gnome.org/show_bug.cgi?id=725078
GStreamer | gst-plugins-base | git
--- Comment #7 from Vincent Penquerc'h <vincent.penquerch at collabora.co.uk> 2014-11-12 13:40:02 UTC ---
Sorry to ping again on this one, but the patch seems obviously correct to me,
so I'll try to explain it with an example.
Imagine you get a buffer with ts 3, duration 2, and 200 samples. That makes 100
samples per second, starting at 3 and ending at 5.
Imagine now that the skew algorithm offsets the timestamps by -3.5: the start
value goes from 3 to -0.5, end to 1.5. The start value will get clipped to 0,
so the buffer will start at 0 and have duration 1.5.
Those samples corresponding to the -0.5 - 0 interval now need to be dropped in
order for the samples in positive time to play at the correct time. So dropping
the first 50 samples gives us a buffer with the last 150 samples, starting at
0, and ending at 1.5.
Does this convince you ?
--
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