baseaudiosrc: improve slave skew resync
authorHåvard Graff <havard.graff@tandberg.com>
Tue, 8 Sep 2009 10:59:20 +0000 (12:59 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Tue, 8 Sep 2009 10:59:20 +0000 (12:59 +0200)
commit058776bcf1ab218b509d19685a0b528d71c65f98
tree06ab2f49a77a7c78cab5569db4d8f09b81996084
parentf051514f698d4f1155281e8405b2fde5d9cb4256
baseaudiosrc: improve slave skew resync

The old one did the mistake of not actually advancing the ringbuffer, it just
adjusted the segbase, introducing the whole lenght of the ringbuffer as an
extra delay in the pipeline.

Also make sure that the resync can never go back in time, producing the same
timestamps that has already been produced, as this can cause severe problems
for sinks and other synching mechanisms.

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