GNOME Bugzilla – Bug 610443
baseaudiosink: clock can jump on setcaps
Last modified: 2011-06-15 17:42:46 UTC
On the setcaps function of baseaudiosink the existing ringbuffer is reconfigured. If the samples_per_seg are different this will cause the clock to jump. This bug can be triggered by live-switching analog/digital audio. Mike told on IRC that he also experience this with playbin2 and files with different samplerate.
Created attachment 154199 [details] [review] baseaudiosink: recalibrate clock on setcaps Because the spec for the ringbuffer can change when changing the caps, we must recalibrate the clock.
Seems like a good idea. I've having little trouble wrapping my head around all different possibilities (with and without clock slaving). Commit after the freeze, I guess.
commit dad50ad1fecfadfd0dd74dfe66259458cffeb9c2 Author: Thijs Vermeir <thijsvermeir@gmail.com> Date: Fri Feb 19 12:54:18 2010 +0100 baseaudiosink: recalibrate clock on setcaps Because the spec for the ringbuffer can change when changing the caps, we must recalibrate the clock. https://bugzilla.gnome.org/show_bug.cgi?id=610443