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.
This commit is contained in:
Rafał Dzięgiel
2021-06-16 10:58:56 +02:00
parent 0d4d3f1a8c
commit bea3b1670d

View File

@@ -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,