From 7fe3657d86ab8ad2947bf50bf21ad9395ff23553 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 5 Oct 2010 12:05:38 +0200 Subject: [PATCH] libvisual: only drop frames that are really too old Also take the frame duration into account so that we don't drop frames that are partially past the estimated QoS time. --- ext/libvisual/visual.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/libvisual/visual.c b/ext/libvisual/visual.c index f864e71..48c1e27 100644 --- a/ext/libvisual/visual.c +++ b/ext/libvisual/visual.c @@ -678,6 +678,7 @@ gst_visual_chain (GstPad * pad, GstBuffer * buffer) /* QoS is done on running time */ qostime = gst_segment_to_running_time (&visual->segment, GST_FORMAT_TIME, timestamp); + qostime += visual->duration; GST_OBJECT_LOCK (visual); /* check for QoS, don't compute buffers that are known to be late */ -- 2.7.4