audiobasesrc: Always resync the ringbuffer on the first buffer
authorThiago Santos <thiago.sousa.santos@collabora.co.uk>
Tue, 2 Aug 2011 13:11:14 +0000 (10:11 -0300)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Mon, 17 Dec 2012 10:47:34 +0000 (11:47 +0100)
commit929edc25728a45d889ca46f38ce62d421c072122
treeaefe6fd960ded9bfd0dab5b227dfaceee4cff759
parent53072a43261c8f45f6b572b7463f83953a4549d6
audiobasesrc: Always resync the ringbuffer on the first buffer

In SKEW mode, use next_sample == -1 to check for the first sample
when starting to read samples so it resyncs the ringbuffer and
timestamps are ok.

Suggestion from Teemu Katajisto <teemu.katajisto@digia.com>

https://bugzilla.gnome.org/show_bug.cgi?id=648359
gst-libs/gst/audio/gstaudiobasesrc.c