mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
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.
This commit is contained in:
parent
1fe9f49691
commit
75c5aed1ba
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue