https://bugs.kde.org/show_bug.cgi?id=377623
Bug ID: 377623
Summary: Mpris2 length/position overflow, use doubles instead
of int
Product: plasmashell
Version: master
Platform: Other
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: Media Player
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Target Milestone: 1.0
QML's int has a max of 2000000000.
http://doc.qt.io/qt-5/qml-int.html
(2000000000 / 1000000 / 60) = 33.3 minutes is the maximum track we can play
before it overflows. Most movies are longer, but some songs (mixes) could be
that long too.
QML's Slider uses real for the maximumValue, and there doesn't seem to be a
long datatype, but I suggest using doubles.
http://doc.qt.io/qt-5/qml-qtquick-controls-slider.html
http://doc.qt.io/qt-5/qtqml-typesystem-basictypes.html
--
You are receiving this mail because:
You are watching all bug changes.