From 87697609a20a54b57020abcef656de600eb2da30 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Mon, 30 Sep 2024 14:22:10 +0200 Subject: [PATCH] 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: --- net/webrtc/src/webrtcsink/imp.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/webrtc/src/webrtcsink/imp.rs b/net/webrtc/src/webrtcsink/imp.rs index 40f7ac096..693261a30 100644 --- a/net/webrtc/src/webrtcsink/imp.rs +++ b/net/webrtc/src/webrtcsink/imp.rs @@ -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());