From d9e8f4054c9a73183d16928c78a16351400fe13d 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 83f44617..bf423b17 100644 --- a/net/webrtc/src/webrtcsink/imp.rs +++ b/net/webrtc/src/webrtcsink/imp.rs @@ -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());