From 34cdb6bcdda33855e174e4865a769c8033fc266d Mon Sep 17 00:00:00 2001 From: Sam Gillam Date: Thu, 24 Oct 2024 10:42:44 -0600 Subject: [PATCH] Use correct aspectRation for gst video --- src/FlightDisplay/FlightDisplayViewVideo.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/FlightDisplay/FlightDisplayViewVideo.qml b/src/FlightDisplay/FlightDisplayViewVideo.qml index d1c84c1e375..66701676606 100644 --- a/src/FlightDisplay/FlightDisplayViewVideo.qml +++ b/src/FlightDisplay/FlightDisplayViewVideo.qml @@ -26,7 +26,9 @@ Item { property bool useSmallFont: true - property double _ar: QGroundControl.videoManager.aspectRatio + property double _ar: QGroundControl.videoManager.gstreamerEnabled + ? QGroundControl.videoManager.videoSize.width / QGroundControl.videoManager.videoSize.height + : QGroundControl.videoManager.aspectRatio property bool _showGrid: QGroundControl.settingsManager.videoSettings.gridLines.rawValue property var _dynamicCameras: globals.activeVehicle ? globals.activeVehicle.cameraManager : null property bool _connected: globals.activeVehicle ? !globals.activeVehicle.communicationLost : false