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/1833>
This commit is contained in:
Guillaume Desmottes 2024-09-30 14:22:10 +02:00 committed by Backport Bot
parent f0f33692ac
commit 87697609a2

View file

@ -3769,7 +3769,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());