audiobasesink: Reset audio clock if necessary
authorArun Raghavan <arun@centricular.com>
Tue, 3 Mar 2015 17:26:37 +0000 (22:56 +0530)
committerArun Raghavan <arun@accosted.net>
Tue, 3 Mar 2015 17:56:54 +0000 (23:26 +0530)
commit557c2c9be1f9156a66df88fa6cc725ffa5a73615
treed67433d544913d0cfe5c4381bb84f87c2e375e52
parent4643d34a7a97c2601ec7fc8167251a1cdaea142d
audiobasesink: Reset audio clock if necessary

When the ringbuffer is deactivated and then acquired, if the audio clock
provided by the sink gets reset to zero, we need to add an offset to the
clock to make sure that subsequent samples are written out at the right
times. While we need to leave this to derived classes to take care of
when they provide their own clock (since that clock may or may not be
reset to zero), we can do this ourselves if we know the provided clock
is our own (which does reset to zero on a re-acquire).
gst-libs/gst/audio/gstaudiobasesink.c
gst-libs/gst/audio/gstaudiosink.c