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:
Wim Taymans 2009-04-10 21:49:45 +02:00 committed by Wim Taymans
parent db20c378e7
commit 251f152c20

View file

@ -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 */