mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-09-02 09:43:48 +00:00
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.
This commit is contained in:
parent
ef7cf4dd98
commit
c4f771dbbc
1 changed files with 1 additions and 0 deletions
|
@ -468,6 +468,7 @@ fn setup_encoding(
|
||||||
.with_context(|| format!("Creating payloader {}", codec.payloader.name()))?;
|
.with_context(|| format!("Creating payloader {}", codec.payloader.name()))?;
|
||||||
let parse_filter = make_element("capsfilter", None)?;
|
let parse_filter = make_element("capsfilter", None)?;
|
||||||
|
|
||||||
|
pay.set_property("mtu", 1200 as u32);
|
||||||
pay.set_property("pt", codec.payload as u32);
|
pay.set_property("pt", codec.payload as u32);
|
||||||
|
|
||||||
if let Some(ssrc) = ssrc {
|
if let Some(ssrc) = ssrc {
|
||||||
|
|
Loading…
Reference in a new issue