File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -575,7 +575,8 @@ public class InboundRtpStreamStatistics: ReceivedRtpStreamStatistics {
575
575
public let retransmittedPacketsReceived : UInt64 ?
576
576
public let retransmittedBytesReceived : UInt64 ?
577
577
578
- public let previous : InboundRtpStreamStatistics ?
578
+ // Weak reference to previous stat so we can compare later.
579
+ public weak var previous : InboundRtpStreamStatistics ?
579
580
580
581
init ? ( id: String ,
581
582
timestamp: Double ,
@@ -720,7 +721,8 @@ public class OutboundRtpStreamStatistics: SentRtpStreamStatistics {
720
721
public let active : Bool ?
721
722
public let scalabilityMode : String ?
722
723
723
- public let previous : OutboundRtpStreamStatistics ?
724
+ // Weak reference to previous stat so we can compare later.
725
+ public weak var previous : OutboundRtpStreamStatistics ?
724
726
725
727
init ? ( id: String ,
726
728
timestamp: Double ,
You can’t perform that action at this time.
0 commit comments