From bea3b1670d9e56af4495a1333819ab468ba9a455 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Wed, 16 Jun 2021 10:58:56 +0200 Subject: [PATCH] API: Raise ignored duration changes to 250 milliseconds We do not show milliseconds in GUI, so we should not try to handle stream gaps that short. --- lib/gst/clapper/gstclapper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gst/clapper/gstclapper.c b/lib/gst/clapper/gstclapper.c index d0fb036c..6619ca50 100644 --- a/lib/gst/clapper/gstclapper.c +++ b/lib/gst/clapper/gstclapper.c @@ -1618,7 +1618,7 @@ static void emit_duration_changed (GstClapper * self, GstClockTime duration) { if (self->cached_duration == duration - || self->cached_duration / GST_MSECOND == duration / GST_MSECOND) + || self->cached_duration / (250 * GST_MSECOND) == duration / (250 * GST_MSECOND)) return; GST_DEBUG_OBJECT (self, "Duration changed %" GST_TIME_FORMAT,