Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Making Packet Sendable #4

Merged
merged 1 commit into from
Jun 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Sources/RTP/Packet.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Foundation

// Packet represents an individual RTP packet.
public struct Packet {
public struct Packet: Sendable {
static let version: UInt8 = 2
static let versionMask: UInt8 = 0b1100_0000
static let paddingMask: UInt8 = 0b0010_0000
Expand Down Expand Up @@ -172,7 +172,7 @@ public struct Packet {
}

// Extension represents an RTP extension.
public struct Extension {
public struct Extension: Sendable {
public typealias ProfileID = UInt16

static let headerSize = 4
Expand Down
2 changes: 1 addition & 1 deletion Sources/RTP/Types.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public enum EncodingError: Error {
case tooManyCSRCs(_ count: Int)
}

public struct PayloadType: ExpressibleByIntegerLiteral, RawRepresentable, Equatable {
public struct PayloadType: ExpressibleByIntegerLiteral, RawRepresentable, Equatable, Sendable {
public typealias IntegerLiteralType = UInt8

public static let marker: Self = 0b1000_0000
Expand Down