goom: take duration into account when doing QoS

Take the duration of the frames into account so that we don't drop frames that
are only partially past the QoS deadline.
This commit is contained in:
Wim Taymans 2010-10-05 12:20:52 +02:00
parent cd5f31f751
commit 49d5d8f69e
2 changed files with 2 additions and 0 deletions

View 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 */

View 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 */