From 550860f6366cc99d3f0ff19f74fd3fc3d1bfc0ad Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Tue, 18 Apr 2017 23:47:50 +0200 Subject: [PATCH] [Media Controller] Use double for length instead of int Length is in microseconds, so watching a long video (in excess of 33.3 minutes) will break the slider. CHANGELOG: Media Controller can now properly handle and seek long tracks (> 30 minutes) BUG: 377623 FIXED-IN: 5.8.7 --- applets/mediacontroller/contents/ui/ExpandedRepresentation.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applets/mediacontroller/contents/ui/ExpandedRepresentation.qml b/applets/mediacontroller/contents/ui/ExpandedRepresentation.qml index ea1bd031b..596421d3e 100644 --- a/applets/mediacontroller/contents/ui/ExpandedRepresentation.qml +++ b/applets/mediacontroller/contents/ui/ExpandedRepresentation.qml @@ -35,7 +35,7 @@ Item { readonly property int controlSize: Math.min(height, width) / 4 property int position: mpris2Source.currentData.Position || 0 - readonly property int length: currentMetadata ? currentMetadata["mpris:length"] || 0 : 0 + readonly property double length: currentMetadata ? currentMetadata["mpris:length"] || 0 : 0 property bool disablePositionUpdate: false property bool keyPressed: false