From 49d5d8f69e1ff3b6e92e0415ec9149e536e56def Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 5 Oct 2010 12:20:52 +0200 Subject: [PATCH] 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. --- gst/goom/gstgoom.c | 1 + gst/goom2k1/gstgoom.c | 1 + 2 files changed, 2 insertions(+) diff --git a/gst/goom/gstgoom.c b/gst/goom/gstgoom.c index f75126da6d..2ae669cd4c 100644 --- a/gst/goom/gstgoom.c +++ b/gst/goom/gstgoom.c @@ -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 */ diff --git a/gst/goom2k1/gstgoom.c b/gst/goom2k1/gstgoom.c index 0b5da9a80c..08b7bc5c5a 100644 --- a/gst/goom2k1/gstgoom.c +++ b/gst/goom2k1/gstgoom.c @@ -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 */