GstClockTime eos_time;
gboolean do_time_offset;
- /* number of microseconds we alow timestamps or clock slaving to drift
+ /* number of microseconds we allow timestamps or clock slaving to drift
* before resyncing */
guint64 drift_tolerance;
};
/**
* GstBaseAudioSink:drift-tolerance
*
- * Controls the amount of time in milliseconds that timestamps or clocks are allowed
+ * Controls the amount of time in microseconds that timestamps or clocks are allowed
* to drift before resynchronisation happens.
*
* Since: 0.10.26
diff = sink->next_sample - sample_offset;
/* calculate the max allowed drift in units of samples. By default this is
- * 20ms and should be anough to compensate for timestamp rounding errors. */
+ * 40ms and should be anough to compensate for timestamp rounding errors. */
maxdrift = (ringbuf->spec.rate * sink->priv->drift_tolerance) / GST_MSECOND;
/* calc align with previous sample */