audiobasesink: clip start samples to match clipped start time
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Mon, 24 Feb 2014 16:17:05 +0000 (11:17 -0500)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Fri, 4 Apr 2014 16:04:06 +0000 (17:04 +0100)
commit169166d0a2ef735576870f41a5eb9c38da337451
tree800e60d9870c5d110884754ba874d190549c3a07
parent675d0400e1f46c81302720fe0f394b44bef6c4b2
audiobasesink: clip start samples to match clipped start time

Clock slaving can clip start time to zero, giving us a shorted
duration than we originally got. To keep in sync, we must then
discard the samples falling before that zero timestamp.

This possibly fixes random distortion caused by constant PA
underflows which are never resynced.
gst-libs/gst/audio/gstaudiobasesink.c