mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-25 04:51:26 +00:00
webrtc: allow PAR change in webrtcsink input caps
We are already allowing resolution changes which can lead to change in pixel-aspect-ratio. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1830>
This commit is contained in:
parent
dcb072ee23
commit
d9e8f4054c
1 changed files with 2 additions and 1 deletions
|
@ -4205,7 +4205,8 @@ impl BaseWebRTCSink {
|
|||
// a renegotiation.
|
||||
let caps_type = current.name();
|
||||
if caps_type.starts_with("video/") {
|
||||
const VIDEO_ALLOWED_CHANGES: &[&str] = &["width", "height", "framerate"];
|
||||
const VIDEO_ALLOWED_CHANGES: &[&str] =
|
||||
&["width", "height", "framerate", "pixel-aspect-ratio"];
|
||||
|
||||
current.remove_fields(VIDEO_ALLOWED_CHANGES.iter().copied());
|
||||
new.remove_fields(VIDEO_ALLOWED_CHANGES.iter().copied());
|
||||
|
|
Loading…
Reference in a new issue