File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 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 {
575575 public let retransmittedPacketsReceived : UInt64 ?
576576 public let retransmittedBytesReceived : UInt64 ?
577577
578- public let previous : InboundRtpStreamStatistics ?
578+ // Weak reference to previous stat so we can compare later.
579+ public weak var previous : InboundRtpStreamStatistics ?
579580
580581 init ? ( id: String ,
581582 timestamp: Double ,
@@ -720,7 +721,8 @@ public class OutboundRtpStreamStatistics: SentRtpStreamStatistics {
720721 public let active : Bool ?
721722 public let scalabilityMode : String ?
722723
723- public let previous : OutboundRtpStreamStatistics ?
724+ // Weak reference to previous stat so we can compare later.
725+ public weak var previous : OutboundRtpStreamStatistics ?
724726
725727 init ? ( id: String ,
726728 timestamp: Double ,
You can’t perform that action at this time.
0 commit comments