From: Wim Taymans Date: Tue, 5 Oct 2010 10:05:38 +0000 (+0200) Subject: libvisual: only drop frames that are really too old X-Git-Tag: RELEASE-0.10.31~130 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7fe3657d86ab8ad2947bf50bf21ad9395ff23553;p=platform%2Fupstream%2Fgst-plugins-base.git 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. --- 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 */