mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 21:35:44 +00:00
jpegdec: add duration when extimating QoS time
When we need to decide on the next QoS time, take into account the duration of the buffers.
This commit is contained in:
parent
759a3507d7
commit
c899229c48
1 changed files with 1 additions and 1 deletions
|
@ -1061,7 +1061,7 @@ gst_jpeg_dec_update_qos (GstJpegDec * dec, gdouble proportion,
|
|||
GST_OBJECT_LOCK (dec);
|
||||
dec->proportion = proportion;
|
||||
if (G_LIKELY (ts != GST_CLOCK_TIME_NONE)) {
|
||||
if (G_UNLIKELY (diff > 0))
|
||||
if (G_UNLIKELY (diff > dec->qos_duration))
|
||||
dec->earliest_time = ts + 2 * diff + dec->qos_duration;
|
||||
else
|
||||
dec->earliest_time = ts + diff;
|
||||
|
|
Loading…
Reference in a new issue