A track of 60 seconds length has the valid positions [0,59] so subtract -1
Details
Details
Diff Detail
Diff Detail
- Repository
- R120 Plasma Workspace
- Lint
Lint Skipped - Unit
Unit Tests Skipped
Comment Actions
I'm not sure whether that's correct - a file with a duration of 1s still has a range of 1s.
Comment Actions
1s file is a corner case as well as 0, cause you have always 2 positions - start and stop. In 0/1s these 2 steps just match, if you are right 0 isn't valid in 0s length file, does it?
+1 for the patch from me.
Comment Actions
The slider's value is floating point, so you also have the (theoretically) infinite positions in between.
In 0/1s these 2 steps just match, if you are right 0 isn't valid in 0s length file, does it?
A file with 0s length can't be seeked.