From 8cdf5a586f93dd81341d13e29d482f171146b7fb Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Fri, 26 Feb 2010 15:46:50 +0100 Subject: [PATCH] basesink: fix emergency rendering timestamp tracking Specifically, if all (including initial) buffers turn up late, emergency rendering should also kick in appropriately. Fixes #611087. --- libs/gst/base/gstbasesink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/gst/base/gstbasesink.c b/libs/gst/base/gstbasesink.c index 76f7a33..685aa9d 100644 --- a/libs/gst/base/gstbasesink.c +++ b/libs/gst/base/gstbasesink.c @@ -2602,7 +2602,7 @@ gst_base_sink_is_too_late (GstBaseSink * basesink, GstMiniObject * obj, } done: - if (!late) { + if (!late || !GST_CLOCK_TIME_IS_VALID (priv->last_in_time)) { priv->last_in_time = start; } return late; -- 2.7.4