From 7593313d7b466088ba29fc63226fec64483006dd Mon Sep 17 00:00:00 2001 From: Vekhir Date: Tue, 14 Apr 2026 20:20:14 +0200 Subject: [PATCH] fix: Recreate source widget when starting the recording Reusing the same source widget when the video size has changed leads to incorrect transformations, a distorted video and leaves artifacts. Instead reset the widget to force a recalculation of the viewport transformation and other necessary updates. A more targeted approach might be possible, but likely complex and without much benefit. --- src/podcast/UBPodcastController.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/podcast/UBPodcastController.cpp b/src/podcast/UBPodcastController.cpp index b15caa706..c6117ee59 100644 --- a/src/podcast/UBPodcastController.cpp +++ b/src/podcast/UBPodcastController.cpp @@ -316,6 +316,8 @@ void UBPodcastController::start() mVideoFrameSizeAtStart = QSize(width, height); + mSourceWidget = nullptr; + applicationMainModeChanged(UBApplication::applicationController->displayMode()); #ifdef Q_OS_WIN