libvisual: only drop frames that are really too old
Also take the frame duration into account so that we don't drop frames that are partially past the estimated QoS time.
This commit is contained in:
parent
cc470dfb68
commit
7fe3657d86
@ -678,6 +678,7 @@ gst_visual_chain (GstPad * pad, GstBuffer * buffer)
|
||||
/* QoS is done on running time */
|
||||
qostime = gst_segment_to_running_time (&visual->segment, GST_FORMAT_TIME,
|
||||
timestamp);
|
||||
qostime += visual->duration;
|
||||
|
||||
GST_OBJECT_LOCK (visual);
|
||||
/* check for QoS, don't compute buffers that are known to be late */
|
||||
|
Loading…
x
Reference in New Issue
Block a user