diff options
author | Wim Taymans <wim.taymans@collabora.co.uk> | 2009-11-25 10:26:16 -0600 |
---|---|---|
committer | Wim Taymans <wim@metal.(none)> | 2009-11-25 10:26:16 -0600 |
commit | 75c5aed1ba350e787af909df4c851aa83c15ba9c (patch) | |
tree | f5021fc9e3b66c0e54995491df8185075b85a123 | |
parent | 1fe9f496911f3139c977e559eb29f60066278165 (diff) |
audiosink: add adjustement when slaving
Our calibration against the pipeline clock is done with the adjusted
ringbuffer time, so take the adjustement into account. Fixes some audio dropouts
when reusing audio sinks after switching clocks and slaving methods in a
pipeline.
-rw-r--r-- | gst-libs/gst/audio/gstbaseaudiosink.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gst-libs/gst/audio/gstbaseaudiosink.c b/gst-libs/gst/audio/gstbaseaudiosink.c index a4d2dc83f..a58e1284b 100644 --- a/gst-libs/gst/audio/gstbaseaudiosink.c +++ b/gst-libs/gst/audio/gstbaseaudiosink.c @@ -995,6 +995,7 @@ gst_base_audio_sink_skew_slaving (GstBaseAudioSink * sink, /* sample clocks and figure out clock skew */ etime = gst_clock_get_time (GST_ELEMENT_CLOCK (sink)); itime = gst_audio_clock_get_time (sink->provided_clock); + itime = gst_audio_clock_adjust (sink->provided_clock, itime); GST_DEBUG_OBJECT (sink, "internal %" GST_TIME_FORMAT " external %" GST_TIME_FORMAT |