From 251f152c2071235f96e8f10f41c960fb8689526b Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 10 Apr 2009 21:49:45 +0200 Subject: [PATCH] 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. --- gst-libs/gst/audio/gstbaseaudiosink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst-libs/gst/audio/gstbaseaudiosink.c b/gst-libs/gst/audio/gstbaseaudiosink.c index 5e7c14eb30..6e831e3732 100644 --- a/gst-libs/gst/audio/gstbaseaudiosink.c +++ b/gst-libs/gst/audio/gstbaseaudiosink.c @@ -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 */