diff options
author | Wim Taymans <wim.taymans@collabora.co.uk> | 2009-04-10 21:49:45 +0200 |
---|---|---|
committer | Wim Taymans <wim@metal.(none)> | 2009-04-10 21:50:55 +0200 |
commit | 251f152c2071235f96e8f10f41c960fb8689526b (patch) | |
tree | deb5a800410e59f4c70ced3f14faf16a3a1f4105 | |
parent | db20c378e7368ab63d9eb39c98118df8279bd7da (diff) |
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.
-rw-r--r-- | gst-libs/gst/audio/gstbaseaudiosink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst-libs/gst/audio/gstbaseaudiosink.c b/gst-libs/gst/audio/gstbaseaudiosink.c index 5e7c14eb3..6e831e373 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 */ |