[gst-cvs] gst-plugins-good: goom: take duration into account when doing QoS

Wim Taymans wtay at kemper.freedesktop.org
Tue Oct 5 03:23:28 PDT 2010


Module: gst-plugins-good
Branch: master
Commit: 49d5d8f69e1ff3b6e92e0415ec9149e536e56def
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=49d5d8f69e1ff3b6e92e0415ec9149e536e56def

Author: Wim Taymans <wim.taymans at collabora.co.uk>
Date:   Tue Oct  5 12:20:52 2010 +0200

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(+), 0 deletions(-)

diff --git a/gst/goom/gstgoom.c b/gst/goom/gstgoom.c
index f75126d..2ae669c 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 0b5da9a..08b7bc5 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 */





More information about the Gstreamer-commits mailing list