From 28251c49128c8ddf50cca93fc6a13cba35c53f3d Mon Sep 17 00:00:00 2001 From: Boris Grozev Date: Thu, 6 Jun 2024 11:48:52 -0500 Subject: [PATCH] squash: Remove unnecessary type, inherit the clock in clone(). --- .../src/main/kotlin/org/jitsi/nlj/PacketInfo.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jitsi-media-transform/src/main/kotlin/org/jitsi/nlj/PacketInfo.kt b/jitsi-media-transform/src/main/kotlin/org/jitsi/nlj/PacketInfo.kt index 1cc3943901..c943f9325c 100644 --- a/jitsi-media-transform/src/main/kotlin/org/jitsi/nlj/PacketInfo.kt +++ b/jitsi-media-transform/src/main/kotlin/org/jitsi/nlj/PacketInfo.kt @@ -37,7 +37,7 @@ class EventTimeline( private val clock: Clock = Clock.systemUTC() ) : Iterable> { - private val timeline: MutableList> = Collections.synchronizedList(timelineArg) + private val timeline = Collections.synchronizedList(timelineArg) /** * The [referenceTime] refers to the first timestamp we have @@ -58,7 +58,7 @@ class EventTimeline( } fun clone(): EventTimeline { - val clone = EventTimeline(timeline.toMutableList()) + val clone = EventTimeline(timeline.toMutableList(), clock) clone.referenceTime = referenceTime return clone }