Commit 1bb02b98 authored by Arsen Arsen's avatar Arsen Arsen Committed by Kai Uwe Broulik
Browse files

[Media Player] Change int to double for positions

In previous versions of Plasma, media player had an overflow bug in positions, leading to the player resetting to 00:00.
This only affects files longer than around 33 minutes 20 seconds.

BUG: 397591
FIXED-IN: 5.12.7

Differential Revision:
parent 99c0ef8c
......@@ -35,7 +35,7 @@ Item {
readonly property int controlSize: Math.min(height, width) / 4
property int position: mpris2Source.currentData.Position || 0
property double position: mpris2Source.currentData.Position || 0
readonly property real rate: mpris2Source.currentData.Rate || 1
readonly property double length: currentMetadata ? currentMetadata["mpris:length"] || 0 : 0
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment