Commit 49d5d8f6 authored by Wim Taymans's avatar Wim Taymans

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.
parent cd5f31f7
......@@ -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 */
......
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment