summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Uwe Broulik <kde@privat.broulik.de>2017-04-18 21:47:50 (GMT)
committerKai Uwe Broulik <kde@privat.broulik.de>2017-04-18 21:47:50 (GMT)
commit550860f6366cc99d3f0ff19f74fd3fc3d1bfc0ad (patch)
treea9e081a4da08905f7c55088b4ea98295fde429e8
parent58206408a35a0900b5678231b7aaf490b2a3ec10 (diff)
[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
-rw-r--r--applets/mediacontroller/contents/ui/ExpandedRepresentation.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/applets/mediacontroller/contents/ui/ExpandedRepresentation.qml b/applets/mediacontroller/contents/ui/ExpandedRepresentation.qml
index ea1bd03..596421d 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