basesrc: fix startup position in the ringbuffer
authorWim Taymans <wim.taymans@collabora.co.uk>
Fri, 6 Nov 2009 11:19:47 +0000 (12:19 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Fri, 6 Nov 2009 11:22:00 +0000 (12:22 +0100)
commit4f3f9a105482615ca47cb05a07cb4525f2733529
tree34c8afe3d52e6ed6764f66b54795c25f3d3ebf48
parent27034be4611231cc55fa3d3e253baa40c6bff41d
basesrc: fix startup position in the ringbuffer

When we start and we need to produce the first sample, go to the next sample
that will be written into the ringbuffer instead of trying to go to sample 0.
We relied on rather small ringbuffer sizes to correctly go to the current
sample, which breaks whith large buffers.

Fixes #600945
gst-libs/gst/audio/gstbaseaudiosrc.c