mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-01-23 17:38:20 +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/1285>
This commit is contained in:
parent
eda38a637e
commit
482b7e1469
1 changed files with 2 additions and 2 deletions
|
@ -549,8 +549,8 @@ fn setup_encoding(
|
|||
gst::Caps::builder("audio/x-raw").build()
|
||||
};
|
||||
|
||||
match codec.encoder.name().as_str() {
|
||||
"vp8enc" | "vp9enc" => {
|
||||
match codec.payloader.name().as_str() {
|
||||
"rtpvp8pay" | "rtpvp9pay" => {
|
||||
pay.set_property_from_str("picture-id-mode", "15-bit");
|
||||
}
|
||||
_ => (),
|
||||
|
|
Loading…
Reference in a new issue