mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-06-25 01:20:35 +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/1286>
This commit is contained in:
parent
83a2c52f32
commit
adb113a591
|
@ -567,8 +567,8 @@ fn setup_encoding(
|
||||||
gst::Caps::builder("audio/x-raw").build()
|
gst::Caps::builder("audio/x-raw").build()
|
||||||
};
|
};
|
||||||
|
|
||||||
match codec.encoder.name().as_str() {
|
match codec.payloader.name().as_str() {
|
||||||
"vp8enc" | "vp9enc" => {
|
"rtpvp8pay" | "rtpvp9pay" => {
|
||||||
pay.set_property_from_str("picture-id-mode", "15-bit");
|
pay.set_property_from_str("picture-id-mode", "15-bit");
|
||||||
}
|
}
|
||||||
_ => (),
|
_ => (),
|
||||||
|
|
Loading…
Reference in a new issue