mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-17 22:06:41 +00:00
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:
parent
cd5f31f751
commit
49d5d8f69e
2 changed files with 2 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue