mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-01-10 19:25:26 +00:00
webrtcsink: Set VP8/VP9 payloader based on payloader element factory name
Instead of checking the encoder's name. There are more VP8/VP9 encoders than the ones from the vpx plugin. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1272>
This commit is contained in:
parent
1bb06d775c
commit
957a28f239
1 changed files with 5 additions and 2 deletions
|
@ -582,8 +582,11 @@ impl Codec {
|
|||
.property("mtu", 1200_u32)
|
||||
.property("pt", pt);
|
||||
|
||||
if ["vp8enc", "vp9enc"].contains(&self.encoder_name().unwrap().as_str()) {
|
||||
res = res.property_from_str("picture-id-mode", "15-bit");
|
||||
match info.payloader.name().as_str() {
|
||||
"rtpvp8pay" | "rtpvp9pay" => {
|
||||
res = res.property_from_str("picture-id-mode", "15-bit");
|
||||
}
|
||||
_ => (),
|
||||
}
|
||||
|
||||
res.build().unwrap()
|
||||
|
|
Loading…
Reference in a new issue