Skip to content

Commit 5d604a6

Browse files
committed
Making Packet Sendable
1 parent 6dcdffb commit 5d604a6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Sources/RTP/Packet.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Foundation
22

33
// Packet represents an individual RTP packet.
4-
public struct Packet {
4+
public struct Packet: Sendable {
55
static let version: UInt8 = 2
66
static let versionMask: UInt8 = 0b1100_0000
77
static let paddingMask: UInt8 = 0b0010_0000
@@ -177,7 +177,7 @@ public struct Packet {
177177
}
178178

179179
// Extension represents an RTP extension.
180-
public struct Extension {
180+
public struct Extension: Sendable {
181181
public typealias ProfileID = UInt16
182182

183183
static let headerSize = 4

Sources/RTP/Types.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public enum EncodingError: Error {
1010
case tooManyCSRCs(_ count: Int)
1111
}
1212

13-
public struct PayloadType: ExpressibleByIntegerLiteral, RawRepresentable, Equatable {
13+
public struct PayloadType: ExpressibleByIntegerLiteral, RawRepresentable, Equatable, Sendable {
1414
public typealias IntegerLiteralType = UInt8
1515

1616
public static let marker: Self = 0b1000_0000

0 commit comments

Comments
 (0)