Skip to content
This repository was archived by the owner on Oct 24, 2022. It is now read-only.

Commit c4f771d

Browse files
thiblahuteMathieuDuponchelle
authored andcommitted
Fix payloaders MTU to 1200
Higher value might be too big (in particular with many VPNs `webrtcsink` won't work with the default 1400 MTU). 1200 is the default value in libwebrtc and it is references in several places there.
1 parent ef7cf4d commit c4f771d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

plugins/src/webrtcsink/imp.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,7 @@ fn setup_encoding(
468468
.with_context(|| format!("Creating payloader {}", codec.payloader.name()))?;
469469
let parse_filter = make_element("capsfilter", None)?;
470470

471+
pay.set_property("mtu", 1200 as u32);
471472
pay.set_property("pt", codec.payload as u32);
472473

473474
if let Some(ssrc) = ssrc {

0 commit comments

Comments
 (0)