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:
Guillaume Desmottes 2024-09-30 14:22:10 +02:00
parent dcb072ee23
commit d9e8f4054c

View file

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