gst-plugins-rs/net/webrtc/src/webrtcsink
François Laignel 2ad452ee89 webrtcsink: don't panic with bitrate handling unsupported encoders
When an encoder was not supported by the `VideoEncoder` `bitrate` accessors, an
`unimplemented` panic would occur which would poison `state` & `settings`
`Mutex`s resulting in other threads panicking, notably entering `end_session()`,
which lead to many failures in `BinImplExt::parent_remove_element()` until a
segmentation fault ended the process. This was observed using `vaapivp9enc`.

This commit logs a warning if an encoder isn't supported by the `bitrate`
accessors and silently by-passes `bitrate`-related operations when unsupported.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1534>
2024-04-09 15:48:59 +00:00
..
homegrown_cc.rs webrtcsink: don't panic with bitrate handling unsupported encoders 2024-04-09 15:48:59 +00:00
imp.rs webrtcsink: don't panic with bitrate handling unsupported encoders 2024-04-09 15:48:59 +00:00
mod.rs webrtcsink: don't panic with bitrate handling unsupported encoders 2024-04-09 15:48:59 +00:00
pad.rs webrtcsink: Added sinkpad with "msid" property 2024-02-12 15:04:44 +00:00