Skip to content

Commit 71ea113

Browse files
logist322yngrtc
authored and
yngrtc
committed
Optimize SRTP/SRTCP encryption/decryption
1 parent 3d0a14a commit 71ea113

File tree

33 files changed

+1958
-521
lines changed

33 files changed

+1958
-521
lines changed

.github/workflows/cargo.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ jobs:
4747
- name: 🏭 Cache dependencies
4848
uses: Swatinem/rust-cache@v2
4949
- name: Test
50-
run: cargo test --features metrics
50+
run: cargo test
51+
- name: Test with all features enabled
52+
run: cargo test --all-features
5153

5254
test_windows:
5355
name: Test (windows)

constraints/src/algorithms/select_settings/tie_breaking.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ mod tests {
115115
MediaTrackSettings::from_iter([(&DEVICE_ID, "device-id-2".into())]),
116116
];
117117

118-
let policy = FirstPolicy::default();
118+
let policy = FirstPolicy;
119119

120120
let actual = policy.select_candidate(&settings);
121121

media/src/io/ogg_writer/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ impl<W: Write + Seek> OggWriter<W> {
159159
impl<W: Write + Seek> Writer for OggWriter<W> {
160160
/// write_rtp adds a new packet and writes the appropriate headers for it
161161
fn write_rtp(&mut self, packet: &rtp::packet::Packet) -> Result<()> {
162-
let mut opus_packet = rtp::codecs::opus::OpusPacket::default();
162+
let mut opus_packet = rtp::codecs::opus::OpusPacket;
163163
let payload = opus_packet.depacketize(&packet.payload)?;
164164

165165
// Should be equivalent to sample_rate * duration

0 commit comments

Comments
 (0)