libvisual: only drop frames that are really too old
authorWim Taymans <wim.taymans@collabora.co.uk>
Tue, 5 Oct 2010 10:05:38 +0000 (12:05 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Tue, 5 Oct 2010 10:22:39 +0000 (12:22 +0200)
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

index f864e71..48c1e27 100644 (file)
@@ -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 */