mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 18:51:11 +00:00
baseaudiosink: use the internal clock time
We can't assume that the internal clock time is the same as the function we installed on our provided clock because somebody might have changed it.
This commit is contained in:
parent
db20c378e7
commit
251f152c20
1 changed files with 1 additions and 1 deletions
|
@ -1127,7 +1127,7 @@ gst_base_audio_sink_sync_latency (GstBaseSink * bsink, GstMiniObject * obj)
|
|||
* our internal clock should exactly have been the latency (== the running
|
||||
* time of the external clock) */
|
||||
etime = GST_ELEMENT_CAST (sink)->base_time + time;
|
||||
itime = gst_base_audio_sink_get_time (sink->provided_clock, sink);
|
||||
itime = gst_clock_get_internal_time (sink->provided_clock);
|
||||
|
||||
if (status == GST_CLOCK_EARLY) {
|
||||
/* when we prerolled late, we have to take into account the lateness */
|
||||
|
|
Loading…
Reference in a new issue