mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-29 15:22:11 +02:00
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:
2
lib/gst/clapper/gstclapper.c
vendored
2
lib/gst/clapper/gstclapper.c
vendored
@@ -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,
|
||||
|
Reference in New Issue
Block a user