goom: take duration into account when doing QoS
authorWim Taymans <wim.taymans@collabora.co.uk>
Tue, 5 Oct 2010 10:20:52 +0000 (12:20 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Tue, 5 Oct 2010 10:23:15 +0000 (12:23 +0200)
Take the duration of the frames into account so that we don't drop frames that
are only partially past the QoS deadline.

gst/goom/gstgoom.c
gst/goom2k1/gstgoom.c

index f75126d..2ae669c 100644 (file)
@@ -544,6 +544,7 @@ gst_goom_chain (GstPad * pad, GstBuffer * buffer)
 
       qostime = gst_segment_to_running_time (&goom->segment, GST_FORMAT_TIME,
           timestamp);
+      qostime += goom->duration;
 
       GST_OBJECT_LOCK (goom);
       /* check for QoS, don't compute buffers that are known to be late */
index 0b5da9a..08b7bc5 100644 (file)
@@ -542,6 +542,7 @@ gst_goom_chain (GstPad * pad, GstBuffer * buffer)
 
       qostime = gst_segment_to_running_time (&goom->segment, GST_FORMAT_TIME,
           timestamp);
+      qostime += goom->duration;
 
       GST_OBJECT_LOCK (goom);
       /* check for QoS, don't compute buffers that are known to be late */