summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/v4l2/gstv4l2filter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/v4l2/gstv4l2filter.c b/sys/v4l2/gstv4l2filter.c
index d58883957..734cfcfb8 100644
--- a/sys/v4l2/gstv4l2filter.c
+++ b/sys/v4l2/gstv4l2filter.c
@@ -815,7 +815,7 @@ v4l2_filter_src_task (GstPad * pad)
/* latency contains the time the buffer spent in queues. Hope
that the real latency is always the same, so the minimum is
the best guess. */
- if (old_latency == 0 || latency < old_latency) {
+ if (old_latency == 0 || latency < old_latency * 9 / 10) {
v4l2filter->min_latency = latency;
if (obj->pool)
v4l2filter->max_latency = latency *